summaryrefslogtreecommitdiffstats
path: root/src/core/Zones.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-08-03 03:00:12 +0200
committereray orçunus <erayorcunus@gmail.com>2020-08-03 15:00:32 +0200
commite14252914e9bd4cf7702479b5e0b050b935ba4aa (patch)
treedf42291b9b6745f86097de4d58fc55e6a64b1b8c /src/core/Zones.cpp
parentMove sdk and eax (diff)
downloadre3-e14252914e9bd4cf7702479b5e0b050b935ba4aa.tar
re3-e14252914e9bd4cf7702479b5e0b050b935ba4aa.tar.gz
re3-e14252914e9bd4cf7702479b5e0b050b935ba4aa.tar.bz2
re3-e14252914e9bd4cf7702479b5e0b050b935ba4aa.tar.lz
re3-e14252914e9bd4cf7702479b5e0b050b935ba4aa.tar.xz
re3-e14252914e9bd4cf7702479b5e0b050b935ba4aa.tar.zst
re3-e14252914e9bd4cf7702479b5e0b050b935ba4aa.zip
Diffstat (limited to 'src/core/Zones.cpp')
-rw-r--r--src/core/Zones.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/Zones.cpp b/src/core/Zones.cpp
index 1556731b..2e3e0f6e 100644
--- a/src/core/Zones.cpp
+++ b/src/core/Zones.cpp
@@ -7,6 +7,7 @@
#include "Clock.h"
#include "Text.h"
#include "World.h"
+#include "Timer.h"
eLevelName CTheZones::m_CurrLevel;
CZone *CTheZones::m_pPlayersZone;
@@ -122,6 +123,10 @@ CTheZones::Init(void)
void
CTheZones::Update(void)
{
+#ifdef SQUEEZE_PERFORMANCE
+ if (CTimer::GetFrameCounter() % 5 != 0)
+ return;
+#endif
CVector pos;
pos = FindPlayerCoors();
m_pPlayersZone = FindSmallestZonePosition(&pos);