Merge pull request #171 from OpenDriver2/develop-SoapyMan

RC2 fixes
This commit is contained in:
Ilya 2022-02-07 21:14:15 +03:00 committed by GitHub
commit 3063442dcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 22 deletions

View File

@ -1189,8 +1189,7 @@ void ControlCops(void)
copsWereInPursuit = 0;
if (CopsCanSeePlayer && OutOfSightCount < 256 || // [A] was player_position_known. Resolves speech in some missions
player_position_known > 1 && GameType == GAME_GETAWAY)
if (player_position_known > 0)
{
if (*playerFelony > FELONY_PURSUIT_MIN_VALUE)
copsWereInPursuit = 1;

View File

@ -1546,9 +1546,7 @@ void CheckForPause(void)
}
}
#ifdef PSX
int gMultiStep = 0;
#endif
// [D] [T]
void State_GameLoop(void* param)
@ -1568,17 +1566,16 @@ void State_GameLoop(void* param)
UpdatePadData();
CheckForPause();
// moved from StepGame
if (FrameCnt == 5)
SetDispMask(1);
#ifdef PSX
static int lastTime32Hz = 0;
int curTime = clock_realTime.time32Hz;
int numFrames = curTime - lastTime32Hz;
// moved from StepGame
if (FrameCnt == 5)
SetDispMask(1);
// game makes 7 frames
if (FastForward)
cnt = 7;
else
@ -1598,25 +1595,14 @@ void State_GameLoop(void* param)
StepGame();
}
DrawGame();
#else
// moved from StepGame
if (FrameCnt == 5)
SetDispMask(1);
// game makes 7 frames
if (FastForward)
cnt = 7;
else
cnt = 1;
cnt = FastForward ? 7 : 1;
while (--cnt >= 0)
StepGame();
#endif
_CutRec_Draw();
DrawGame();
#endif
if (game_over)
SetState(STATE_GAMECOMPLETE);