summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-12 21:29:50 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-12 21:29:50 +0100
commitf73e870bdeed9506ee68a68136d92a3ead034f6c (patch)
tree5fde5893788ff1bb50e33b61cc8c0a9f9e3dc29d /src/control
parentlittle cleanup of vehicle rendering (diff)
parentbug of the decade (diff)
downloadre3-f73e870bdeed9506ee68a68136d92a3ead034f6c.tar
re3-f73e870bdeed9506ee68a68136d92a3ead034f6c.tar.gz
re3-f73e870bdeed9506ee68a68136d92a3ead034f6c.tar.bz2
re3-f73e870bdeed9506ee68a68136d92a3ead034f6c.tar.lz
re3-f73e870bdeed9506ee68a68136d92a3ead034f6c.tar.xz
re3-f73e870bdeed9506ee68a68136d92a3ead034f6c.tar.zst
re3-f73e870bdeed9506ee68a68136d92a3ead034f6c.zip
Diffstat (limited to 'src/control')
-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 916e36e5..1337605f 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: