mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 13:39:09 +00:00
(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.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user