Browse Source

Fix GetTilePosition function so that it actually returns the correct ending point

master
Sven Slootweg 9 years ago
parent
commit
bbf8d7f3d6
  1. 2
      map_isometric.js

2
map_isometric.js

@ -204,7 +204,7 @@ if(RadiumEngine !== undefined)
this.GetRangePosition = function(start, size)
{
x = this.GetTilePosition(start.x, start.y + size.y).x;
x = this.GetTilePosition(start.x, start.y + size.y - 1).x;
y = this.GetTilePosition(start.x, start.y).y;
return new RadiumEngine.Point(x, y);

Loading…
Cancel
Save