Skip to content

Commit cbf0a90

Browse files
committed
remove a little duplication
1 parent 0c15ef6 commit cbf0a90

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/physics/ninja/Body.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -563,12 +563,8 @@ Phaser.Physics.Ninja.Body.render = function(context, body, color, filled) {
563563
filled = true;
564564
}
565565

566-
if (body.aabb)
566+
if (body.aabb || body.circle)
567567
{
568-
body.aabb.render(context, body.game.camera.x, body.game.camera.y, color, filled);
569-
}
570-
else if (body.circle)
571-
{
572-
body.circle.render(context, body.game.camera.x, body.game.camera.y, color, filled);
568+
body.shape.render(context, body.game.camera.x, body.game.camera.y, color, filled);
573569
}
574570
};

0 commit comments

Comments
 (0)