From 7fc33e4a99afa68e0193271afe53098063baa3d7 Mon Sep 17 00:00:00 2001 From: dewfewg <3061784569@qq.com> Date: Sat, 28 Oct 2023 22:46:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20StrategySystem.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StrategySystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StrategySystem.cpp b/StrategySystem.cpp index 2278d50..2c3f071 100644 --- a/StrategySystem.cpp +++ b/StrategySystem.cpp @@ -45,7 +45,7 @@ void CStrategySystem::Shot(int which) { CPoint t1, t2, t3; t1.x = ball.position.x; t1.y = ball.position.y; - Position(10, t1); // 机器人到足够近的点 + Direction(10, t1); // 机器人到足够近的点 t2.x = robot->position.x; t2.y = robot->position.y; if (Distance(t1, t2) == 1)