cancel pathfinding if non-sub tries to dive

This commit is contained in:
devZoGok
2025-02-09 17:26:02 +02:00
parent 022c159f76
commit adefc1adb8
+2
View File
@@ -261,6 +261,8 @@ namespace battleship{
int dest = map->getCellId(destPos);
if(type != UnitType::UNDERWATER && fabs(destPos.y - cells[dest].pos.y) > .1) return;
vector<float> heuristics;
for(Map::Cell &cell : cells)