diff --git a/vehicle.cpp b/vehicle.cpp index 66b37b1..2d1bfcb 100644 --- a/vehicle.cpp +++ b/vehicle.cpp @@ -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 heuristics; for(Map::Cell &cell : cells)