Skip to content

Commit f6712da

Browse files
committed
Switch Camera.setBoundsToWorld to match world.bounds instead of world
1 parent 666df67 commit f6712da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/Camera.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Phaser.Camera.prototype = {
244244

245245
setBoundsToWorld: function () {
246246

247-
this.bounds.setTo(this.game.world.x, this.game.world.y, this.game.world.width, this.game.world.height);
247+
this.bounds.setTo(this.game.world.bounds.x, this.game.world.bounds.y, this.game.world.bounds.width, this.game.world.bounds.height);
248248

249249
},
250250

0 commit comments

Comments
 (0)