mirror of
https://github.com/Retera/WarsmashModEngine.git
synced 2022-07-31 17:38:59 +02:00
Fix pathing grid issue on certain maps
This commit is contained in:
parent
b2900f50fc
commit
d5a1ee643d
@ -90,7 +90,7 @@ public class PathingGrid {
|
||||
public boolean contains(final float x, final float y) {
|
||||
final int cellX = getCellX(x);
|
||||
final int cellY = getCellY(y);
|
||||
return (cellX >= 0) && (cellY >= 0) && (cellX < this.pathingGrid[0]) && (cellY < this.pathingGrid[1]);
|
||||
return (cellX >= 0) && (cellY >= 0) && (cellX < this.pathingGridSizes[0]) && (cellY < this.pathingGridSizes[1]);
|
||||
}
|
||||
|
||||
public short getPathing(final float x, final float y) {
|
||||
|
Loading…
Reference in New Issue
Block a user