Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
Sora-yx committed Mar 10, 2022
1 parent f8efab0 commit 90736a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SA2-Debug-Mode/FreeCam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void FreeCam_CheckInput()
return;
}

if (GetKeyState('Y') & 0x8000 && ControllerEnabled[0])
if (GetKeyState('Y') & 0x8000)
{
FreeCamEnabled = !FreeCamEnabled;

Expand Down Expand Up @@ -181,15 +181,14 @@ void FreeCam_CheckInput()
TimeStopped = 0;
ShowHud = 1;
ResetCam(CameraData.gap1AC[168], 0);
Controllers[0].press |= Buttons_L;
}

delayCam = 35;
return;
}

//hide UI and stop time
if (GetKeyState('P') & 0x8000 && !delayCam)
if (GetKeyState('P') & 0x8000 && !delayCam && FreeCamEnabled)
{
TimeStopped = !TimeStopped;
ShowHud = !ShowHud;
Expand Down

0 comments on commit 90736a3

Please sign in to comment.