corrected impassible node calculation

This commit is contained in:
devZoGok
2022-09-11 11:25:26 +03:00
parent 838ae2832f
commit 723994652f
2 changed files with 20 additions and 13 deletions
+1 -1
View File
@@ -169,6 +169,6 @@ namespace battleship{
bool Map::isPointWithin(int id, Vector3 point, Vector3 cellSize){
Vector3 cellPos = getCellPos(id, cellSize);
return ((fabs(point.x - cellPos.x) < 0.5 * cellSize.x) && (point.y > 0) && (fabs(point.z - cellPos.z) < 0.5 * cellSize.z));
return ((fabs(point.x - cellPos.x) < 0.5 * cellSize.x) && (fabs(point.z - cellPos.z) < 0.5 * cellSize.z));
}
}