Update StrategySystem.cpp
This commit is contained in:
1 parent
0afee1e357
commit
e1d8a5b15e
1 file changed
+7
-7
+7
-7
@@ -2410,7 +2410,7 @@ void CStrategySystem::Goalie() {
|
||||
static int xit;
|
||||
|
||||
if (ball.oldPosition.x < hgoalie.position.x && ball.position.x < hgoalie.position.x) {
|
||||
int xix = ball.position.x >= 730 && (ball.position.y <= 313 || ball.position.y >= 505) || ball.position.x >= 873 && abs(ball.position.y - ball.oldPosition.y) > 10 || ball.position.x >= 940 ? 965 : 950;
|
||||
int xix = ball.position.x >= 730 && ((ball.position.y <= 313 || ball.position.y >= 505) || abs(ball.position.y - ball.oldPosition.y) > 2) || ball.position.x >= 940 ? 965 : 950;
|
||||
int xiy = 409;
|
||||
|
||||
if (ball.position.x >= 600) {
|
||||
@@ -2435,26 +2435,26 @@ void CStrategySystem::Goalie() {
|
||||
xiy = ball.position.y;
|
||||
|
||||
if ((xit / 4) % 2)
|
||||
xiy += 20;
|
||||
xiy += 30;
|
||||
else
|
||||
xiy -= 20;
|
||||
xiy -= 30;
|
||||
}
|
||||
}
|
||||
else {
|
||||
xiy = 409;
|
||||
|
||||
if ((xit / 4) % 2)
|
||||
xiy += 20;
|
||||
xiy += 30;
|
||||
else
|
||||
xiy -= 20;
|
||||
xiy -= 30;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ((xit / 4) % 2)
|
||||
xiy += 20;
|
||||
xiy += 30;
|
||||
else
|
||||
xiy -= 20;
|
||||
xiy -= 30;
|
||||
}
|
||||
|
||||
if (xiy < 316)
|
||||
|
||||
Reference in new issue
Block a user