diff options
author | peter1138 <peter1138@openttd.org> | 2007-05-22 19:48:11 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-05-22 19:48:11 +0000 |
commit | 2125b963871bee82d48cd9b684352e54ab2610ed (patch) | |
tree | 2f72d3272da86043ee08907353ec8e4e0d74b928 /src/command.cpp | |
parent | b7748a686eca83d53eddf0be888e6f58eb12d054 (diff) | |
download | openttd-2125b963871bee82d48cd9b684352e54ab2610ed.tar.xz |
(svn r9898) -Fix (r9874): Many...
- Group protection status wasn't changed via a command.
- Group renaming didn't check group owner (and in fact changed the owner,
just like renaming a sign...).
- Added owner checks to other group commands.
- Invalidate window data after the command has been completed instead of after
the command has been sent. This fixes gui issues in network play.
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command.cpp b/src/command.cpp index 3fa2bcfec..8c4322350 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -174,6 +174,8 @@ DEF_COMMAND(CmdDeleteGroup); DEF_COMMAND(CmdAddVehicleGroup); DEF_COMMAND(CmdAddSharedVehicleGroup); DEF_COMMAND(CmdRemoveAllVehiclesGroup); +DEF_COMMAND(CmdSetGroupReplaceProtection); + /* The master command table */ static const Command _command_proc_table[] = { {CmdBuildRailroadTrack, 0}, /* 0 */ @@ -325,6 +327,7 @@ static const Command _command_proc_table[] = { {CmdAddVehicleGroup, 0}, /* 123 */ {CmdAddSharedVehicleGroup, 0}, /* 124 */ {CmdRemoveAllVehiclesGroup, 0}, /* 125 */ + {CmdSetGroupReplaceProtection, 0}, /* 126 */ }; /* This function range-checks a cmd, and checks if the cmd is not NULL */ |