diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-07-09 18:18:42 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-07-09 18:18:42 +0200 |
commit | cf69f22a0ce5b808a4d945a5cef1d9d4c51c0b5c (patch) | |
tree | f8a4337f1394c0c55b1be4e8ee62e49e713ba1c7 /src/core/Streaming.cpp | |
parent | Remove console and fix sth (diff) | |
download | re3-cf69f22a0ce5b808a4d945a5cef1d9d4c51c0b5c.tar re3-cf69f22a0ce5b808a4d945a5cef1d9d4c51c0b5c.tar.gz re3-cf69f22a0ce5b808a4d945a5cef1d9d4c51c0b5c.tar.bz2 re3-cf69f22a0ce5b808a4d945a5cef1d9d4c51c0b5c.tar.lz re3-cf69f22a0ce5b808a4d945a5cef1d9d4c51c0b5c.tar.xz re3-cf69f22a0ce5b808a4d945a5cef1d9d4c51c0b5c.tar.zst re3-cf69f22a0ce5b808a4d945a5cef1d9d4c51c0b5c.zip |
Diffstat (limited to 'src/core/Streaming.cpp')
-rw-r--r-- | src/core/Streaming.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp index c961f53d..b701f43f 100644 --- a/src/core/Streaming.cpp +++ b/src/core/Streaming.cpp @@ -725,7 +725,11 @@ CStreaming::RequestBigBuildings(eLevelName level) n = CPools::GetBuildingPool()->GetSize()-1; for(i = n; i >= 0; i--){ b = CPools::GetBuildingPool()->GetSlot(i); - if(b && b->bIsBIGBuilding && b->m_level == level) + if(b && b->bIsBIGBuilding +#ifndef NO_ISLAND_LOADING + && b->m_level == level +#endif + ) RequestModel(b->GetModelIndex(), BIGBUILDINGFLAGS); } RequestIslands(level); @@ -735,6 +739,7 @@ CStreaming::RequestBigBuildings(eLevelName level) void CStreaming::RequestIslands(eLevelName level) { +#ifndef NO_ISLAND_LOADING switch(level){ case LEVEL_INDUSTRIAL: RequestModel(islandLODcomInd, BIGBUILDINGFLAGS); @@ -750,6 +755,7 @@ CStreaming::RequestIslands(eLevelName level) break; default: break; } +#endif } void @@ -935,12 +941,14 @@ CStreaming::RemoveBuildings(eLevelName level) void CStreaming::RemoveUnusedBigBuildings(eLevelName level) { +#ifndef NO_ISLAND_LOADING if(level != LEVEL_INDUSTRIAL) RemoveBigBuildings(LEVEL_INDUSTRIAL); if(level != LEVEL_COMMERCIAL) RemoveBigBuildings(LEVEL_COMMERCIAL); if(level != LEVEL_SUBURBAN) RemoveBigBuildings(LEVEL_SUBURBAN); +#endif RemoveIslandsNotUsed(level); } @@ -960,6 +968,7 @@ DeleteIsland(CEntity *island) void CStreaming::RemoveIslandsNotUsed(eLevelName level) { +#ifndef NO_ISLAND_LOADING switch(level){ case LEVEL_INDUSTRIAL: DeleteIsland(pIslandLODindustEntity); @@ -977,13 +986,16 @@ CStreaming::RemoveIslandsNotUsed(eLevelName level) DeleteIsland(pIslandLODcomIndEntity); break; default: +#endif // !NO_ISLAND_LOADING DeleteIsland(pIslandLODindustEntity); DeleteIsland(pIslandLODcomIndEntity); DeleteIsland(pIslandLODcomSubEntity); DeleteIsland(pIslandLODsubIndEntity); DeleteIsland(pIslandLODsubComEntity); +#ifndef NO_ISLAND_LOADING break; } +#endif // !NO_ISLAND_LOADING } void |