summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-08-07 10:18:46 +0200
committerGitHub <noreply@github.com>2020-08-07 10:18:46 +0200
commitf14b1fba09fa992a67abe10ca12897fd9db386be (patch)
tree10651feff629e4d2b9e31727d35ed7b00bb02a06 /src/control
parentMerge pull request #676 from aap/master (diff)
parentSqueeze performance option, minor fixes (diff)
downloadre3-f14b1fba09fa992a67abe10ca12897fd9db386be.tar
re3-f14b1fba09fa992a67abe10ca12897fd9db386be.tar.gz
re3-f14b1fba09fa992a67abe10ca12897fd9db386be.tar.bz2
re3-f14b1fba09fa992a67abe10ca12897fd9db386be.tar.lz
re3-f14b1fba09fa992a67abe10ca12897fd9db386be.tar.xz
re3-f14b1fba09fa992a67abe10ca12897fd9db386be.tar.zst
re3-f14b1fba09fa992a67abe10ca12897fd9db386be.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/RoadBlocks.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/control/RoadBlocks.cpp b/src/control/RoadBlocks.cpp
index ee9ec17e..86b4caf1 100644
--- a/src/control/RoadBlocks.cpp
+++ b/src/control/RoadBlocks.cpp
@@ -105,6 +105,10 @@ CRoadBlocks::GenerateRoadBlockCopsForCar(CVehicle* pVehicle, int32 roadBlockType
void
CRoadBlocks::GenerateRoadBlocks(void)
{
+#ifdef SQUEEZE_PERFORMANCE
+ if (FindPlayerPed()->m_pWanted->m_RoadblockDensity == 0)
+ return;
+#endif
CMatrix offsetMatrix;
uint32 frame = CTimer::GetFrameCounter() & 0xF;
int16 nRoadblockNode = (int16)(NUMROADBLOCKS * frame) / 16;