diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-08-08 12:08:21 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-08-08 12:08:21 +0200 |
commit | 9bc105c92346494bc4c36bcebd0a4a86bf9d6a86 (patch) | |
tree | b0582e41c8bc4d5fa0979d8a453b0a2d128f012c /src/core/Zones.cpp | |
parent | submodules? (diff) | |
parent | Merge pull request #680 from ShFil119/actions (diff) | |
download | re3-9bc105c92346494bc4c36bcebd0a4a86bf9d6a86.tar re3-9bc105c92346494bc4c36bcebd0a4a86bf9d6a86.tar.gz re3-9bc105c92346494bc4c36bcebd0a4a86bf9d6a86.tar.bz2 re3-9bc105c92346494bc4c36bcebd0a4a86bf9d6a86.tar.lz re3-9bc105c92346494bc4c36bcebd0a4a86bf9d6a86.tar.xz re3-9bc105c92346494bc4c36bcebd0a4a86bf9d6a86.tar.zst re3-9bc105c92346494bc4c36bcebd0a4a86bf9d6a86.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 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); |