Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
MattTuttle committed Jan 18, 2013
1 parent b7d40e5 commit 15a47bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/haxepunk/graphics/Tilemap.hx
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ class Tilemap extends Canvas
_point.x = point.x + x - camera.x * scrollX;
_point.y = point.y + y - camera.y * scrollY;

var wx:Float = 0, wy:Float = _point.y, tile:Int = 0,
var wx:Float = _point.x, wy:Float = _point.y, tile:Int = 0,
scalex:Float = HXP.screen.fullScaleX, scaley:Float = HXP.screen.fullScaleY,
tw:Int = Std.int(tileWidth * scalex), th:Int = Std.int(tileHeight * scaley);

Expand All @@ -440,7 +440,6 @@ class Tilemap extends Canvas

for (y in starty...desty)
{
wx = _point.x;
for (x in startx...destx)
{
tile = getTile(x, y);
Expand All @@ -451,6 +450,7 @@ class Tilemap extends Canvas

wx += tw;
}
wx = _point.x;
wy += th;
}
}
Expand Down

0 comments on commit 15a47bb

Please sign in to comment.