Skip to content

Commit

Permalink
Update PlayState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline committed Jan 10, 2024
1 parent 4a8325c commit acaa388
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1655,13 +1655,9 @@ class PlayState extends MusicBeatState
var startedCountdown:Bool = false;
var canPause:Bool = true;
var freezeCamera:Bool = false;
var allowDebugKeys:Bool = true;

override public function update(elapsed:Float)
{
if(SONG.disableDebugButtons == false) allowDebugKeys = true;
else allowDebugKeys = false;

if(!inCutscene && !paused && !freezeCamera) {
FlxG.camera.followLerp = 2.4 * cameraSpeed * playbackRate;
if(!startingSong && !endingSong && boyfriend.getAnimationName().startsWith('idle')) {
Expand Down Expand Up @@ -1695,7 +1691,7 @@ class PlayState extends MusicBeatState
if(ret != FunkinLua.Function_Stop) openPauseMenu();
}

if(!endingSong && !inCutscene && allowDebugKeys)
if(!endingSong && !inCutscene && !SONG.disableDebugButtons)
{
if (controls.justPressed('debug_1'))
openChartEditor();
Expand Down

0 comments on commit acaa388

Please sign in to comment.