fix remove defaultCamera refs

This commit is contained in:
George FunBook 2021-03-23 17:30:58 -05:00
parent e6c48ed56f
commit d5d484bfb2
2 changed files with 2 additions and 9 deletions

View file

@ -153,9 +153,7 @@ class PlayState extends MusicBeatState
camHUD.bgColor.alpha = 0; camHUD.bgColor.alpha = 0;
FlxG.cameras.reset(camGame); FlxG.cameras.reset(camGame);
FlxG.cameras.add(camHUD); FlxG.cameras.add(camHUD, false);
FlxCamera.defaultCameras = [camGame];
persistentUpdate = true; persistentUpdate = true;
persistentDraw = true; persistentDraw = true;

View file

@ -45,12 +45,7 @@ class ControlsMenu extends ui.OptionsState.Page
super(); super();
menuCamera = new FlxCamera(); menuCamera = new FlxCamera();
FlxG.cameras.add(menuCamera);// false); FlxG.cameras.add(menuCamera, false);
if (FlxCamera.defaultCameras.indexOf(menuCamera) != -1)
{
FlxCamera.defaultCameras = FlxCamera.defaultCameras.copy();
FlxCamera.defaultCameras.remove(menuCamera);
}
menuCamera.bgColor = 0x0; menuCamera.bgColor = 0x0;
camera = menuCamera; camera = menuCamera;