diff options
author | majestic <majesticcoding@gmail.com> | 2020-08-09 21:54:00 +0200 |
---|---|---|
committer | majestic <majesticcoding@gmail.com> | 2020-08-10 06:42:12 +0200 |
commit | 70029752f517dfe8c8837f7e6f94e6184c14cbfe (patch) | |
tree | b472c4a75ad4f162933bd6f4abd7106dd7adfdf8 /src/core/Zones.cpp | |
parent | CWindModifiers (diff) | |
parent | drunk blur done (diff) | |
download | re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.gz re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.bz2 re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.lz re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.xz re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.tar.zst re3-70029752f517dfe8c8837f7e6f94e6184c14cbfe.zip |
Diffstat (limited to 'src/core/Zones.cpp')
-rw-r--r-- | src/core/Zones.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/Zones.cpp b/src/core/Zones.cpp index 3095b36d..96f5dc62 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; int16 CTheZones::FindIndex; @@ -127,6 +128,10 @@ CTheZones::Init(void) void CTheZones::Update(void) { +#ifdef SQUEEZE_PERFORMANCE + if (CTimer::GetFrameCounter() % 5 != 0) + return; +#endif CVector pos; pos = FindPlayerCoors(); m_CurrLevel = GetLevelFromPosition(&pos); |