diff --git a/source/PlayState.hx b/source/PlayState.hx index 610d50987..2d6afdda2 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -153,9 +153,7 @@ class PlayState extends MusicBeatState camHUD.bgColor.alpha = 0; FlxG.cameras.reset(camGame); - FlxG.cameras.add(camHUD); - - FlxCamera.defaultCameras = [camGame]; + FlxG.cameras.add(camHUD, false); persistentUpdate = true; persistentDraw = true; diff --git a/source/ui/ControlsMenu.hx b/source/ui/ControlsMenu.hx index 5f977659a..cd1e8b9f8 100644 --- a/source/ui/ControlsMenu.hx +++ b/source/ui/ControlsMenu.hx @@ -45,12 +45,7 @@ class ControlsMenu extends ui.OptionsState.Page super(); menuCamera = new FlxCamera(); - FlxG.cameras.add(menuCamera);// false); - if (FlxCamera.defaultCameras.indexOf(menuCamera) != -1) - { - FlxCamera.defaultCameras = FlxCamera.defaultCameras.copy(); - FlxCamera.defaultCameras.remove(menuCamera); - } + FlxG.cameras.add(menuCamera, false); menuCamera.bgColor = 0x0; camera = menuCamera;