1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-23 23:33:55 +00:00

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;
FlxG.cameras.reset(camGame);
FlxG.cameras.add(camHUD);
FlxCamera.defaultCameras = [camGame];
FlxG.cameras.add(camHUD, false);
persistentUpdate = true;
persistentDraw = true;

View file

@ -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;