mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
only adding additional pathpoing when garrisoning
This commit is contained in:
+2
-1
@@ -193,8 +193,9 @@ namespace battleship{
|
||||
if(!pursuingTarget){
|
||||
Vector3 targPos = (orders[0].targets[0].unit ? orders[0].targets[0].unit->getPos() : orders[0].targets[0].pos);
|
||||
preparePathpoints(targPos);
|
||||
addPathpoint(targPos);
|
||||
pursuingTarget = true;
|
||||
|
||||
if(orders[0].type == Order::TYPE::GARRISON) addPathpoint(targPos);
|
||||
}
|
||||
|
||||
navigate(minDist);
|
||||
|
||||
Reference in New Issue
Block a user