From 773bb7c43d8c720e8c79486f9c2b1a15d7e4631b Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Fri, 27 Sep 2024 00:22:27 +0800 Subject: [PATCH] [Combat formation] Fix leftover code --- src/strategy/actions/MovementActions.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/strategy/actions/MovementActions.cpp b/src/strategy/actions/MovementActions.cpp index 07570e2a..e07fc79a 100644 --- a/src/strategy/actions/MovementActions.cpp +++ b/src/strategy/actions/MovementActions.cpp @@ -2364,7 +2364,6 @@ bool TankFaceAction::Execute(Event event) { availablePos.push_back(Position(x, y, z)); } - availablePos.push_back(Position(x, y, z)); } if (availablePos.empty()) return false; @@ -2544,7 +2543,6 @@ bool SetBehindTargetAction::Execute(Event event) { availablePos.push_back(Position(x, y, z)); } - availablePos.push_back(Position(x, y, z)); } target->GetNearPoint(bot, x, y, z, 0.0f, dist, goodAngle2); if (bot->GetMap()->CheckCollisionAndGetValidCoords(bot, bot->GetPositionX(), bot->GetPositionY(), bot->GetPositionZ(), @@ -2557,7 +2555,6 @@ bool SetBehindTargetAction::Execute(Event event) { availablePos.push_back(Position(x, y, z)); } - availablePos.push_back(Position(x, y, z)); } if (availablePos.empty()) return false;