Skip to content

Commit eb3d824

Browse files
committed
Merge pull request phaserjs#250 from cocoademon/camera_bounds_fix
Switch Camera.setBoundsToWorld to match world.bounds instead of world
2 parents fe5fdb1 + f6712da commit eb3d824

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)