Update StrategySystem.cpp

This commit is contained in:
dewfewg committed 2023-12-01 22:27:58 +08:00
1 parent 211a38ac46
commit e2a8d0769f
1 file changed
+1 -1
+1 -1
View File
@@ -2417,7 +2417,7 @@ void CStrategySystem::Goalie() {
xiy = int(((ball.position.y - ball.oldPosition.y) * 1.0 / (ball.position.x - ball.oldPosition.x) * 1.0) * xix + (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 (Distance(ball.position, ball.oldPosition) < 1 || ball.position.x <= ball.oldPosition.x || xiy < 313 || xiy > 505) {
if (ball.position.x >= 860) {
if (ball.position.x >= 873) {
if (ball.position.x >= 927) {
if (ball.position.y < 315)
xiy = 315;