diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-12 15:32:16 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-12 15:32:16 +0100 |
commit | 55c9a8192212f26fb61f15efe7773214ed19f3ee (patch) | |
tree | 9cd1bc9ee78e743e37b29fccb71ae422f097570f | |
parent | Merge pull request #812 from Nick007J/miami (diff) | |
download | re3-55c9a8192212f26fb61f15efe7773214ed19f3ee.tar re3-55c9a8192212f26fb61f15efe7773214ed19f3ee.tar.gz re3-55c9a8192212f26fb61f15efe7773214ed19f3ee.tar.bz2 re3-55c9a8192212f26fb61f15efe7773214ed19f3ee.tar.lz re3-55c9a8192212f26fb61f15efe7773214ed19f3ee.tar.xz re3-55c9a8192212f26fb61f15efe7773214ed19f3ee.tar.zst re3-55c9a8192212f26fb61f15efe7773214ed19f3ee.zip |
-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 |