- restore cheats and cop difficulty after replays

This commit is contained in:
Ilya Shurumov 2021-03-15 00:00:56 +06:00
parent eebc85a024
commit d419f0b4ff

View File

@ -121,6 +121,7 @@ void GameStart(void)
{
int oldVibrationMode;
int SurvivalCopSettingsBackup;
ACTIVE_CHEATS CheatsBackup;
if (GameType != GAME_CONTINUEMISSION &&
GameType != GAME_MISSION &&
@ -140,6 +141,7 @@ void GameStart(void)
SsSetSerialVol(0, 0, 0);
SurvivalCopSettingsBackup = gCopDifficultyLevel;
CheatsBackup = ActiveCheats;
NewLevel = 1;
switch (GameType)
@ -171,6 +173,9 @@ void GameStart(void)
gLoadedReplay = 0;
gVibration = oldVibrationMode;
gCopDifficultyLevel = SurvivalCopSettingsBackup;
ActiveCheats = CheatsBackup;
}
break;
@ -266,6 +271,9 @@ void GameStart(void)
gLoadedReplay = 0;
gCopDifficultyLevel = SurvivalCopSettingsBackup;
ActiveCheats = CheatsBackup;
break;
}