diff options
author | aap <aap@papnet.eu> | 2020-08-07 10:18:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 10:18:46 +0200 |
commit | f14b1fba09fa992a67abe10ca12897fd9db386be (patch) | |
tree | 10651feff629e4d2b9e31727d35ed7b00bb02a06 /src/control | |
parent | Merge pull request #676 from aap/master (diff) | |
parent | Squeeze performance option, minor fixes (diff) | |
download | re3-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.cpp | 4 |
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; |