remove autosave at end of mission under MISSION_REPLAY

This commit is contained in:
Nikolay Korolev 2020-11-01 12:33:16 +03:00
parent 5711251b0f
commit f21cfef8fb
3 changed files with 4 additions and 2 deletions

View file

@ -2696,8 +2696,10 @@ int8 CRunningScript::ProcessCommands0To99(int32 command)
#ifdef MISSION_REPLAY #ifdef MISSION_REPLAY
if (m_bMissionFlag) { if (m_bMissionFlag) {
CPlayerInfo* pPlayerInfo = &CWorld::Players[CWorld::PlayerInFocus]; CPlayerInfo* pPlayerInfo = &CWorld::Players[CWorld::PlayerInFocus];
#if 0 // makeing autosave is pointless and is a bit buggy
if (pPlayerInfo->m_pPed->GetPedState() != PED_DEAD && pPlayerInfo->m_WBState == WBSTATE_PLAYING && !m_bDeatharrestExecuted) if (pPlayerInfo->m_pPed->GetPedState() != PED_DEAD && pPlayerInfo->m_WBState == WBSTATE_PLAYING && !m_bDeatharrestExecuted)
SaveGameForPause(1); SaveGameForPause(1);
#endif
oldTargetX = oldTargetY = 0.0f; oldTargetX = oldTargetY = 0.0f;
if (AllowMissionReplay == 1) if (AllowMissionReplay == 1)
AllowMissionReplay = 2; AllowMissionReplay = 2;

2
vendor/ogg vendored

@ -1 +1 @@
Subproject commit 684c73773e7e2683245ffd6aa75f04115b51123a Subproject commit 36f969bb37559345ee03796ed625a9abd42c6db9

2
vendor/opusfile vendored

@ -1 +1 @@
Subproject commit f94a1764b0dcdd84ee8c13c040de9f4c1a67e4df Subproject commit 4174c26e0aaab19d01afdea0a46f7f95fdc6b3e6