From d5d484bfb23c4f4a671b53e9720ec54990308350 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Tue, 23 Mar 2021 17:30:58 -0500 Subject: [PATCH] fix remove defaultCamera refs --- source/PlayState.hx | 4 +--- source/ui/ControlsMenu.hx | 7 +------ 2 files changed, 2 insertions(+), 9 deletions(-) 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;