limiting submarine diving to min and max depths

This commit is contained in:
devZoGok
2025-01-20 17:03:49 +02:00
parent f34e108a50
commit 05491c927c
2 changed files with 29 additions and 8 deletions
+2
View File
@@ -698,6 +698,8 @@ namespace battleship{
if(fabs(cells[cellId].pos.y - pos.y) < .5 * CELL_SIZE.y)
return cellId;
}
return cellId;
}
else
return surfaceCellId;