mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 10:05:41 -05:00
fix remove defaultCamera refs
This commit is contained in:
parent
e6c48ed56f
commit
d5d484bfb2
2 changed files with 2 additions and 9 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue