summaryrefslogtreecommitdiffstats
path: root/src/control/Script4.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-12 18:54:52 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-12 18:54:52 +0100
commit6cfc61ac0e08e7d2f6455ffc8d0194b0a895d323 (patch)
treede4a78671e0df2070f877d5e607563d5d53129b5 /src/control/Script4.cpp
parentcolmodel fix (diff)
downloadre3-6cfc61ac0e08e7d2f6455ffc8d0194b0a895d323.tar
re3-6cfc61ac0e08e7d2f6455ffc8d0194b0a895d323.tar.gz
re3-6cfc61ac0e08e7d2f6455ffc8d0194b0a895d323.tar.bz2
re3-6cfc61ac0e08e7d2f6455ffc8d0194b0a895d323.tar.lz
re3-6cfc61ac0e08e7d2f6455ffc8d0194b0a895d323.tar.xz
re3-6cfc61ac0e08e7d2f6455ffc8d0194b0a895d323.tar.zst
re3-6cfc61ac0e08e7d2f6455ffc8d0194b0a895d323.zip
Diffstat (limited to 'src/control/Script4.cpp')
-rw-r--r--src/control/Script4.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/control/Script4.cpp b/src/control/Script4.cpp
index a3ded9a5..efe35efb 100644
--- a/src/control/Script4.cpp
+++ b/src/control/Script4.cpp
@@ -106,7 +106,10 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
printf("Couldn't find zone - %s\n", zone);
return 0;
}
- CTheZones::SetPedGroup(zone_id, ScriptParams[0], ScriptParams[1]);
+ while (zone_id >= 0) {
+ CTheZones::SetPedGroup(zone_id, ScriptParams[0], ScriptParams[1]);
+ zone_id = CTheZones::FindNextZoneByLabelAndReturnIndex(zone, ZONE_INFO);
+ }
return 0;
}
case COMMAND_START_CAR_FIRE: