diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-08-03 03:00:12 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-08-03 15:00:32 +0200 |
commit | e14252914e9bd4cf7702479b5e0b050b935ba4aa (patch) | |
tree | df42291b9b6745f86097de4d58fc55e6a64b1b8c /src/control | |
parent | Move sdk and eax (diff) | |
download | re3-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/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; |