Browse Source

Tightened clamping.

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
1ac65dd9bd
  1. 4
      src/engine/InterestManagement/HeightMap.java

4
src/engine/InterestManagement/HeightMap.java

@ -331,9 +331,9 @@ public class HeightMap {
if (gridY < 0) if (gridY < 0)
gridY = 0; gridY = 0;
if (gridX > maxX) if (gridX >= maxX)
gridX = maxX - 1; gridX = maxX - 1;
if (gridY > maxY) if (gridY >= maxY)
gridY = maxY - 1; gridY = maxY - 1;
float offsetX = (gridSquare.x - gridX); float offsetX = (gridSquare.x - gridX);

Loading…
Cancel
Save