mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 08:07:54 -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;
|
||||
|
||||
FlxG.cameras.reset(camGame);
|
||||
FlxG.cameras.add(camHUD);
|
||||
|
||||
FlxCamera.defaultCameras = [camGame];
|
||||
FlxG.cameras.add(camHUD, false);
|
||||
|
||||
persistentUpdate = true;
|
||||
persistentDraw = true;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue