diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-08 17:48:44 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-08 17:48:44 +0200 |
commit | 75943a57b2b9aa5cce36b2c387418acce1fe1c24 (patch) | |
tree | 157b7dc0489adfa7f97a83555335bdfbbef2bf3d /src/core/Streaming.cpp | |
parent | Merge branch 'master' into miami (diff) | |
download | re3-75943a57b2b9aa5cce36b2c387418acce1fe1c24.tar re3-75943a57b2b9aa5cce36b2c387418acce1fe1c24.tar.gz re3-75943a57b2b9aa5cce36b2c387418acce1fe1c24.tar.bz2 re3-75943a57b2b9aa5cce36b2c387418acce1fe1c24.tar.lz re3-75943a57b2b9aa5cce36b2c387418acce1fe1c24.tar.xz re3-75943a57b2b9aa5cce36b2c387418acce1fe1c24.tar.zst re3-75943a57b2b9aa5cce36b2c387418acce1fe1c24.zip |
Diffstat (limited to 'src/core/Streaming.cpp')
-rw-r--r-- | src/core/Streaming.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp index 6620065c..c7bd961c 100644 --- a/src/core/Streaming.cpp +++ b/src/core/Streaming.cpp @@ -1342,10 +1342,11 @@ CStreaming::StreamZoneModels(const CVector &pos) for(i = 0; i < NUMMODELSPERPEDGROUP; i++){ if(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i] == -1) break; - RequestModel(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i], STREAMFLAGS_DONT_REMOVE); + RequestModel(CPopulation::ms_pPedGroups[ms_currentPedGrp].models[i], STREAMFLAGS_DEPENDENCY); } } RequestModel(MI_MALE01, STREAMFLAGS_DONT_REMOVE); + //RequestModel(MI_HMOCA, STREAMFLAGS_DONT_REMOVE); gangsToLoad = 0; gangCarsToLoad = 0; @@ -1369,8 +1370,8 @@ CStreaming::StreamZoneModels(const CVector &pos) bit = 1<<i; if(gangsToLoad & bit && (ms_loadedGangs & bit) == 0){ - RequestModel(MI_GANG01 + i*2, STREAMFLAGS_DONT_REMOVE); - RequestModel(MI_GANG01 + i*2 + 1, STREAMFLAGS_DONT_REMOVE); + RequestModel(MI_GANG01 + i*2, STREAMFLAGS_DEPENDENCY); + RequestModel(MI_GANG01 + i*2 + 1, STREAMFLAGS_DEPENDENCY); ms_loadedGangs |= bit; }else if((gangsToLoad & bit) == 0 && ms_loadedGangs & bit){ SetModelIsDeletable(MI_GANG01 + i*2); @@ -1380,12 +1381,12 @@ CStreaming::StreamZoneModels(const CVector &pos) ms_loadedGangs &= ~bit; } -// TODO(MIAMI): check this -if(CGangs::GetGangInfo(i)->m_nVehicleMI < 0) - continue; + // TODO(MIAMI): check this + if(CGangs::GetGangInfo(i)->m_nVehicleMI < 0) + continue; - if(gangCarsToLoad & bit && (ms_loadedGangCars & bit) == 0){ - RequestModel(CGangs::GetGangInfo(i)->m_nVehicleMI, STREAMFLAGS_DONT_REMOVE); + if((gangCarsToLoad & bit) && (ms_loadedGangCars & bit) == 0){ + RequestModel(CGangs::GetGangInfo(i)->m_nVehicleMI, STREAMFLAGS_DEPENDENCY); }else if((gangCarsToLoad & bit) == 0 && ms_loadedGangCars & bit){ SetModelIsDeletable(CGangs::GetGangInfo(i)->m_nVehicleMI); SetModelTxdIsDeletable(CGangs::GetGangInfo(i)->m_nVehicleMI); |