mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-09 16:24:42 +00:00
fix remove defaultCamera refs
This commit is contained in:
parent
e6c48ed56f
commit
d5d484bfb2
|
@ -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