script fixes

This commit is contained in:
eray orçunus 2020-02-23 18:32:28 +03:00 committed by erorcun
parent f8cd12ffb3
commit cbf396e6e9

View File

@ -8544,7 +8544,7 @@ int8 CRunningScript::ProcessCommands1000To1099(int32 command)
CTimer::Stop(); CTimer::Stop();
CGame::currLevel = (eLevelName)ScriptParams[0]; CGame::currLevel = (eLevelName)ScriptParams[0];
CStreaming::RemoveUnusedBigBuildings(CGame::currLevel); CStreaming::RemoveUnusedBigBuildings(CGame::currLevel);
CStreaming::RemoveIslandsNotUsed(CGame::currLevel); CStreaming::RemoveUnusedBuildings(CGame::currLevel);
CCollision::SortOutCollisionAfterLoad(); CCollision::SortOutCollisionAfterLoad();
CStreaming::RequestIslands(CGame::currLevel); CStreaming::RequestIslands(CGame::currLevel);
CStreaming::LoadAllRequestedModels(true); CStreaming::LoadAllRequestedModels(true);
@ -9013,7 +9013,7 @@ int8 CRunningScript::ProcessCommands1000To1099(int32 command)
} }
case COMMAND_SET_MUSIC_DOES_FADE: case COMMAND_SET_MUSIC_DOES_FADE:
CollectParameters(&m_nIp, 1); CollectParameters(&m_nIp, 1);
TheCamera.m_bMusicFading = (ScriptParams[0] == 0); TheCamera.m_bIgnoreFadingStuffForMusic = (ScriptParams[0] == 0);
return 0; return 0;
case COMMAND_SET_INTRO_IS_PLAYING: case COMMAND_SET_INTRO_IS_PLAYING:
CollectParameters(&m_nIp, 1); CollectParameters(&m_nIp, 1);
@ -9162,7 +9162,7 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command)
DMAudio.Service(); DMAudio.Service();
CPopulation::DealWithZoneChange(CCollision::ms_collisionInMemory, CGame::currLevel, false); CPopulation::DealWithZoneChange(CCollision::ms_collisionInMemory, CGame::currLevel, false);
CStreaming::RemoveUnusedBigBuildings(CGame::currLevel); CStreaming::RemoveUnusedBigBuildings(CGame::currLevel);
CStreaming::RemoveIslandsNotUsed(CGame::currLevel); CStreaming::RemoveUnusedBuildings(CGame::currLevel);
CCollision::SortOutCollisionAfterLoad(); CCollision::SortOutCollisionAfterLoad();
CStreaming::RequestIslands(CGame::currLevel); CStreaming::RequestIslands(CGame::currLevel);
CStreaming::RequestBigBuildings(CGame::currLevel); CStreaming::RequestBigBuildings(CGame::currLevel);