summaryrefslogtreecommitdiff
path: root/src/core/Game.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-03 17:44:10 +0200
committeraap <aap@papnet.eu>2020-05-03 17:44:10 +0200
commita073dda5ecdbf3342378384648453108ad793d87 (patch)
treec2b6550fdabfe3834a9d4525fd97e7cf4a402fe4 /src/core/Game.cpp
parent67467f15d1dd8e545acc47c5e24beb74e4ca78b3 (diff)
GTA_ZONECULL define
Diffstat (limited to 'src/core/Game.cpp')
-rw-r--r--src/core/Game.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/Game.cpp b/src/core/Game.cpp
index 3053c761..0e618c84 100644
--- a/src/core/Game.cpp
+++ b/src/core/Game.cpp
@@ -387,7 +387,9 @@ bool CGame::Initialise(const char* datFile)
LoadingScreen("Loading the Game", "Position dynamic objects", nil);
CWorld::RepositionCertainDynamicObjects();
LoadingScreen("Loading the Game", "Initialise vehicle paths", nil);
+#ifdef GTA_ZONECULL
CCullZones::ResolveVisibilities();
+#endif
CTrain::InitTrains();
CPlane::InitPlanes();
CCredits::Init();
@@ -504,7 +506,9 @@ void CGame::ReInitGameObjectVariables(void)
CSpecialFX::Init();
CWaterCannons::Init();
CParticle::ReloadConfig();
+#ifdef GTA_ZONECULL
CCullZones::ResolveVisibilities();
+#endif
if ( !FrontEndMenuManager.m_bWantToLoad )
{
@@ -537,7 +541,9 @@ void CGame::ReloadIPLs(void)
CCranes::InitCranes();
CGarages::Init();
CWorld::RepositionCertainDynamicObjects();
+#ifdef GTA_ZONECULL
CCullZones::ResolveVisibilities();
+#endif
CRenderer::SortBIGBuildings();
CTimer::Update();
}