Update StrategySystem.cpp
This commit is contained in:
1 parent
38bad0adf9
commit
d5ec2c5481
1 file changed
+1
-1
+1
-1
@@ -2407,7 +2407,7 @@ void CStrategySystem::Goalie() {
|
||||
is_start = false;
|
||||
}
|
||||
|
||||
int gx = ball.position.x >= 873 && (ball.position.y <= 217 || ball.position.y >= 607) || ball.position.x >= 940 ? 965 : 950;
|
||||
int gx = ball.position.x >= 873 && (ball.position.y <= 313 || ball.position.y >= 505) || ball.position.x >= 940 ? 965 : 950;
|
||||
int gy = int(((ball.position.y - ball.oldPosition.y) * 1.0 / (ball.position.x - ball.oldPosition.x) * 1.0) * gx + (ball.oldPosition.y - ((ball.position.y - ball.oldPosition.y) * 1.0 / (ball.position.x - ball.oldPosition.x) * 1.0) * ball.oldPosition.x) + 0.5);
|
||||
|
||||
// if (ball.position.x < ball.oldPosition.x)
|
||||
|
||||
Reference in new issue
Block a user