From 537b63acb50fcf482f518f11a62c766197f50a20 Mon Sep 17 00:00:00 2001 From: aap Date: Fri, 21 Aug 2020 00:05:05 +0200 Subject: [PATCH] call streaming funcs --- src/control/GameLogic.cpp | 2 +- src/control/Script.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/control/GameLogic.cpp b/src/control/GameLogic.cpp index f4e4fdd4..c5394e7c 100644 --- a/src/control/GameLogic.cpp +++ b/src/control/GameLogic.cpp @@ -372,7 +372,7 @@ CGameLogic::RestorePlayerStuffDuringResurrection(CPlayerPed *pPlayerPed, CVector CWorld::ClearExcitingStuffFromArea(pos, 4000.0, 1); pPlayerPed->RestoreHeadingRate(); CGame::currArea = AREA_MAIN_MAP; - //CStreaming::RemoveBuildingsNotInArea(0); // TODO(MIAMI) + CStreaming::RemoveBuildingsNotInArea(0); TheCamera.SetCameraDirectlyInFrontForFollowPed_CamOnAString(); TheCamera.Restore(); CReferences::RemoveReferencesToPlayer(); diff --git a/src/control/Script.cpp b/src/control/Script.cpp index fb95e834..ea94794b 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -12308,8 +12308,7 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command) case COMMAND_SET_AREA_VISIBLE: CollectParameters(&m_nIp, 1); CGame::currArea = ScriptParams[0]; - // TODO(MIAMI) !! - //CStreaming::RemoveBuildingsNotInArea(ScriptParams[0]); + CStreaming::RemoveBuildingsNotInArea(ScriptParams[0]); return 0; case COMMAND_SET_CUTSCENE_ANIM_TO_LOOP: {