fixed bounds checking cc @rochoa
This commit is contained in:
parent
b5d0ef5550
commit
63858fb051
@ -343,7 +343,7 @@ L.TorqueLayer = L.CanvasLayer.extend({
|
||||
pos = this.getTilePos(tile.coord);
|
||||
xx = x - pos.x;
|
||||
yy = y - pos.y;
|
||||
if (xx >= 0 && yy >= 0 && xx <= 256 && yy <= 256) {
|
||||
if (xx >= 0 && yy >= 0 && xx < this.renderer.TILE_SIZE && yy <= this.renderer.TILE_SIZE) {
|
||||
value = this.renderer.getValueFor(tile, step, xx, yy);
|
||||
}
|
||||
if (value !== null) {
|
||||
|
Loading…
Reference in New Issue
Block a user