mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 02:12:43 +01:00
- move pause pad checks to avoid bug
This commit is contained in:
parent
bc131397bb
commit
e575541624
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1416,29 +1416,6 @@ void StepGame(void)
|
||||
PrintStringFeature(G_LTXT(GTXT_Fastforward), 100, 0x1e, 0x1000, 0x1000, 0);
|
||||
}
|
||||
|
||||
// check for pause mode
|
||||
if (AttractMode == 0 && pauseflag == 0)
|
||||
{
|
||||
if (FrameCnt > 2)
|
||||
{
|
||||
if (NumPlayers == 1)
|
||||
{
|
||||
if (paddp == 0x800 && bMissionTitleFade == 0) // [A] && gInGameCutsceneActive == 0) // allow pausing during cutscene
|
||||
{
|
||||
EnablePause(PAUSEMODE_PAUSE);
|
||||
}
|
||||
}
|
||||
else if (paddp == 0x800)
|
||||
{
|
||||
EnablePause(PAUSEMODE_PAUSEP1);
|
||||
}
|
||||
else if (NumPlayers == 2 && (Pads[1].dirnew & 0x800) != 0)
|
||||
{
|
||||
EnablePause(PAUSEMODE_PAUSEP2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (NoPlayerControl == 0)
|
||||
{
|
||||
if (pad_connected < 1 && FrameCnt > 2 && bMissionTitleFade == 0 && gInGameCutsceneActive == 0)
|
||||
@ -1531,6 +1508,29 @@ void CheckForPause(void)
|
||||
gDieWithFade = 32;
|
||||
}
|
||||
|
||||
// check pads for pause here
|
||||
if (AttractMode == 0 && pauseflag == 0)
|
||||
{
|
||||
if (FrameCnt > 2)
|
||||
{
|
||||
if (NumPlayers == 1)
|
||||
{
|
||||
if (paddp == 0x800 && bMissionTitleFade == 0) // [A] && gInGameCutsceneActive == 0) // allow pausing during cutscene
|
||||
{
|
||||
EnablePause(PAUSEMODE_PAUSE);
|
||||
}
|
||||
}
|
||||
else if (paddp == 0x800)
|
||||
{
|
||||
EnablePause(PAUSEMODE_PAUSEP1);
|
||||
}
|
||||
else if (NumPlayers == 2 && (Pads[1].dirnew & 0x800))
|
||||
{
|
||||
EnablePause(PAUSEMODE_PAUSEP2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (WantPause)
|
||||
{
|
||||
WantPause = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user