From 2125b963871bee82d48cd9b684352e54ab2610ed Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 22 May 2007 19:48:11 +0000 Subject: (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. --- src/command.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/command.cpp') 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 */ -- cgit v1.2.3-54-g00ecf