bugfixes for choosing the right cells
This commit is contained in:
devZoGok
2026-03-15 15:14:40 +02:00
parent 25e8803072
commit fa8e28cb19
12 changed files with 395466 additions and 20 deletions
+1 -1
View File
@@ -357,7 +357,7 @@ namespace battleship{
if(pos.y < waterPos.y && fabs(res[0].pos.x - waterPos.x) < .5 * waterSize.x && fabs(res[0].pos.z - waterPos.z) < .5 * waterSize.y){
type = Map::Cell::Type::WATER;
pos.y = waterPos.y;
waterBodyBedPoints.push_back(pair(numVertCells * i + j, res[0].pos.y));
waterBodyBedPoints.push_back(pair(numVertCells * j + i, res[0].pos.y));
break;
}
}