diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-23 10:00:09 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-23 10:00:09 +0200 |
commit | 381d0b4e3ece226865a87498b77d644e0570331e (patch) | |
tree | fde1852932b0f6e488285e76e43291ef3b7d22be /src/control/Script.cpp | |
parent | Fix ClearMissionAudio crash (diff) | |
download | re3-381d0b4e3ece226865a87498b77d644e0570331e.tar re3-381d0b4e3ece226865a87498b77d644e0570331e.tar.gz re3-381d0b4e3ece226865a87498b77d644e0570331e.tar.bz2 re3-381d0b4e3ece226865a87498b77d644e0570331e.tar.lz re3-381d0b4e3ece226865a87498b77d644e0570331e.tar.xz re3-381d0b4e3ece226865a87498b77d644e0570331e.tar.zst re3-381d0b4e3ece226865a87498b77d644e0570331e.zip |
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r-- | src/control/Script.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 1e76e509..59af9ff2 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -98,7 +98,7 @@ bool CTheScripts::bPlayerHasMetDebbieHarry; bool CTheScripts::bPlayerIsInTheStatium; int CTheScripts::AllowedCollision[MAX_ALLOWED_COLLISIONS]; int CTheScripts::FSDestroyedFlag; -short* CTheScripts::SavedVarIndices; +uint16* CTheScripts::SavedVarIndices; int CTheScripts::NumSaveVars; int gScriptsFile = -1; int CTheScripts::NextProcessId = 1; @@ -496,7 +496,10 @@ void CMissionCleanup::Process() CWeather::ReleaseWeather(); for (int i = 0; i < NUM_OF_SPECIAL_CHARS; i++) CStreaming::SetMissionDoesntRequireSpecialChar(i); - CStreaming::ms_disableStreaming = false; +#ifdef GTA_NETWORK + if (!gIsMultiplayerGame) +#endif + CStreaming::ms_disableStreaming = false; if (CHud::m_ItemToFlash != ITEM_ARMOUR && CHud::m_ItemToFlash != ITEM_HEALTH) CHud::m_ItemToFlash = -1; CHud::SetHelpMessage(nil, false); // nil, false, false, true TODO(LCS) @@ -548,7 +551,7 @@ void CMissionCleanup::Process() } RemoveEntityFromList(m_sEntities[i].id, m_sEntities[i].type); } - for (int i = 1; i < NUMSTREAMINFO; i++) { + for (int i = 1; i < MODELINFOSIZE; i++) { if (CStreaming::IsScriptOwnedModel(i)) CStreaming::SetMissionDoesntRequireModel(i); } |