From f6712da77422bde61955aa26524280184fc27095 Mon Sep 17 00:00:00 2001 From: Cameron Foale Date: Thu, 5 Dec 2013 16:28:17 +1100 Subject: [PATCH] Switch Camera.setBoundsToWorld to match world.bounds instead of world --- src/core/Camera.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Camera.js b/src/core/Camera.js index 151e51ac..c4181726 100644 --- a/src/core/Camera.js +++ b/src/core/Camera.js @@ -244,7 +244,7 @@ Phaser.Camera.prototype = { setBoundsToWorld: function () { - this.bounds.setTo(this.game.world.x, this.game.world.y, this.game.world.width, this.game.world.height); + this.bounds.setTo(this.game.world.bounds.x, this.game.world.bounds.y, this.game.world.bounds.width, this.game.world.bounds.height); },