From bbf8d7f3d6e59faa9b1cd0551385719caab85319 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Tue, 7 Aug 2012 01:53:44 +0200 Subject: [PATCH] Fix GetTilePosition function so that it actually returns the correct ending point --- map_isometric.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/map_isometric.js b/map_isometric.js index ea9ad12..2b68fe0 100644 --- a/map_isometric.js +++ b/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);