summaryrefslogtreecommitdiff
path: root/src/group_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-03-14 20:53:31 +0000
committerfrosch <frosch@openttd.org>2010-03-14 20:53:31 +0000
commite5cded6e3600f9363c7b64911292758602afc10d (patch)
tree517e2f7b8d96768ed26b1c5f45225ddc9e762061 /src/group_cmd.cpp
parentdb1c6b7a811fc10e4d598ede421b4ce4cee3c848 (diff)
downloadopenttd-e5cded6e3600f9363c7b64911292758602afc10d.tar.xz
(svn r19424) -Codechange: Call command procs only via DoCommand().
Diffstat (limited to 'src/group_cmd.cpp')
-rw-r--r--src/group_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp
index 63e8f99fe..a8475a18f 100644
--- a/src/group_cmd.cpp
+++ b/src/group_cmd.cpp
@@ -274,7 +274,7 @@ CommandCost CmdAddSharedVehicleGroup(TileIndex tile, DoCommandFlag flags, uint32
/* For each shared vehicles add it to the group */
for (Vehicle *v2 = v->FirstShared(); v2 != NULL; v2 = v2->NextShared()) {
- if (v2->group_id != id_g) CmdAddVehicleGroup(tile, flags, id_g, v2->index, text);
+ if (v2->group_id != id_g) DoCommand(tile, id_g, v2->index, flags, CMD_ADD_VEHICLE_GROUP, text);
}
}
}
@@ -313,7 +313,7 @@ CommandCost CmdRemoveAllVehiclesGroup(TileIndex tile, DoCommandFlag flags, uint3
if (v->group_id != old_g) continue;
/* Add The Vehicle to the default group */
- CmdAddVehicleGroup(tile, flags, DEFAULT_GROUP, v->index, text);
+ DoCommand(tile, DEFAULT_GROUP, v->index, flags, CMD_ADD_VEHICLE_GROUP, text);
}
}