diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-11-12 15:37:04 +0100 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-11-12 15:37:04 +0100 |
commit | 4f8029ad7c76d53f08d9f922d59db32ee27be3f2 (patch) | |
tree | d5a34f1f072e70671b33ebbff9b9d875053c6380 /src/core/Zones.cpp | |
parent | Peds: Remove redundant lines (diff) | |
parent | fixed zone bug (diff) | |
download | re3-4f8029ad7c76d53f08d9f922d59db32ee27be3f2.tar re3-4f8029ad7c76d53f08d9f922d59db32ee27be3f2.tar.gz re3-4f8029ad7c76d53f08d9f922d59db32ee27be3f2.tar.bz2 re3-4f8029ad7c76d53f08d9f922d59db32ee27be3f2.tar.lz re3-4f8029ad7c76d53f08d9f922d59db32ee27be3f2.tar.xz re3-4f8029ad7c76d53f08d9f922d59db32ee27be3f2.tar.zst re3-4f8029ad7c76d53f08d9f922d59db32ee27be3f2.zip |
Diffstat (limited to 'src/core/Zones.cpp')
-rw-r--r-- | src/core/Zones.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/Zones.cpp b/src/core/Zones.cpp index 45fe6fff..8abe0f1e 100644 --- a/src/core/Zones.cpp +++ b/src/core/Zones.cpp @@ -532,14 +532,14 @@ CTheZones::SetZonePedInfo(uint16 zoneid, uint8 day, int16 pedDensity, info->gangPedThreshold[8] = gang8Density; info->gangPedThreshold[0] += info->copPedThreshold; - info->gangPedThreshold[1] = info->gangPedThreshold[0]; - info->gangPedThreshold[2] = info->gangPedThreshold[1]; - info->gangPedThreshold[3] = info->gangPedThreshold[2]; - info->gangPedThreshold[4] = info->gangPedThreshold[3]; - info->gangPedThreshold[5] = info->gangPedThreshold[4]; - info->gangPedThreshold[6] = info->gangPedThreshold[5]; - info->gangPedThreshold[7] = info->gangPedThreshold[6]; - info->gangPedThreshold[8] = info->gangPedThreshold[7]; + info->gangPedThreshold[1] += info->gangPedThreshold[0]; + info->gangPedThreshold[2] += info->gangPedThreshold[1]; + info->gangPedThreshold[3] += info->gangPedThreshold[2]; + info->gangPedThreshold[4] += info->gangPedThreshold[3]; + info->gangPedThreshold[5] += info->gangPedThreshold[4]; + info->gangPedThreshold[6] += info->gangPedThreshold[5]; + info->gangPedThreshold[7] += info->gangPedThreshold[6]; + info->gangPedThreshold[8] += info->gangPedThreshold[7]; } //--MIAMI: unused |