only adding additional pathpoing when garrisoning

This commit is contained in:
devZoGok
2023-11-11 14:51:05 +02:00
parent a572102fa0
commit f4e3dc460e
+2 -1
View File
@@ -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);