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:56:49 +0100
commite6aa9f9d4e0f1e90b657304efbe49e9677f9f6b4 (patch)
tree74bab94341bf871c280c42e598471c9da2108f67 /src/control/Script4.cpp
parentscript4 (diff)
downloadre3-e6aa9f9d4e0f1e90b657304efbe49e9677f9f6b4.tar
re3-e6aa9f9d4e0f1e90b657304efbe49e9677f9f6b4.tar.gz
re3-e6aa9f9d4e0f1e90b657304efbe49e9677f9f6b4.tar.bz2
re3-e6aa9f9d4e0f1e90b657304efbe49e9677f9f6b4.tar.lz
re3-e6aa9f9d4e0f1e90b657304efbe49e9677f9f6b4.tar.xz
re3-e6aa9f9d4e0f1e90b657304efbe49e9677f9f6b4.tar.zst
re3-e6aa9f9d4e0f1e90b657304efbe49e9677f9f6b4.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 e74d9445..4373f98d 100644
--- a/src/control/Script4.cpp
+++ b/src/control/Script4.cpp
@@ -97,7 +97,10 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
printf("Couldn't find zone - %s\n", zone);
return 0;
}
- CTheZones::SetPedGroup(zone_id, GET_INTEGER_PARAM(0), GET_INTEGER_PARAM(1));
+ while (zone_id >= 0) {
+ CTheZones::SetPedGroup(zone_id, GET_INTEGER_PARAM(0), GET_INTEGER_PARAM(1));
+ zone_id = CTheZones::FindNextZoneByLabelAndReturnIndex(zone, ZONE_INFO);
+ }
return 0;
}
case COMMAND_START_CAR_FIRE: