Skip to content

Commit

Permalink
Fix FlxTilemap's drawDebug on FLX_RENDER_BLIT
Browse files Browse the repository at this point in the history
Bug was introduced in 7b71f59.
  • Loading branch information
Gama11 committed Dec 28, 2014
1 parent db5a4da commit acc09ed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions flixel/FlxObject.hx
Expand Up @@ -868,10 +868,7 @@ class FlxObject extends FlxBasic

for (camera in cameras)
{
if (camera.visible && camera.exists && isOnScreen(camera))
{
drawDebugOnCamera(camera);
}
drawDebugOnCamera(camera);
}
}

Expand All @@ -883,6 +880,11 @@ class FlxObject extends FlxBasic
*/
public function drawDebugOnCamera(camera:FlxCamera):Void
{
if (!camera.visible || !camera.exists || !isOnScreen(camera))
{
return;
}

var rect = getBoundingBox(camera);

// Find the color to use
Expand Down

0 comments on commit acc09ed

Please sign in to comment.