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

master
Sven Slootweg 12 years ago
parent 23f4ba5eac
commit bbf8d7f3d6

@ -204,7 +204,7 @@ if(RadiumEngine !== undefined)
this.GetRangePosition = function(start, size) 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; y = this.GetTilePosition(start.x, start.y).y;
return new RadiumEngine.Point(x, y); return new RadiumEngine.Point(x, y);

Loading…
Cancel
Save