Update StrategySystem.cpp

This commit is contained in:
xixu-me committed 2023-12-03 16:46:24 +08:00
1 parent 0da39635e2
commit 15ba2464d6
1 file changed
+1 -1
+1 -1
View File
@@ -2408,7 +2408,7 @@ void CStrategySystem::Goalie() {
if (ball.position.x <= hgoalie.position.x) {
int xix = ball.position.x > 950 ? 965 : 950, xiy, xii = int((double(ball.position.y - ball.oldPosition.y) / (ball.position.x - ball.oldPosition.x)) * 965 + (ball.oldPosition.y - (double(ball.position.y - ball.oldPosition.y) / (ball.position.x - ball.oldPosition.x)) * ball.oldPosition.x) + 0.5);
if (Distance(ball.position, ball.oldPosition) < 1 || ball.position.x <= ball.oldPosition.x || xii < 313 || xii > 505) {
if (ball.position.x >= 900 && ball.position.y >= 247 && ball.position.y <= 577) {
if (ball.position.x >= 927 && ball.position.y >= 247 && ball.position.y <= 577) {
if (ball.position.y < 313)
xiy = 313;
else if (ball.position.y > 505)