diff options
author | rubidium <rubidium@openttd.org> | 2009-01-08 14:55:28 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-08 14:55:28 +0000 |
commit | e39484e9a8c2ddf93bce5b9ec5bc570c415c6000 (patch) | |
tree | 9fe08d5845cf6f8e94b83f9103044e7460ced669 /src/command_func.h | |
parent | 427e2d30c538e2edc1e9a570a2bf349b36dc5d75 (diff) | |
download | openttd-e39484e9a8c2ddf93bce5b9ec5bc570c415c6000.tar.xz |
(svn r14916) -Codechange: make it possible to send CommandContainers directly to DoCommand(P).
Diffstat (limited to 'src/command_func.h')
-rw-r--r-- | src/command_func.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command_func.h b/src/command_func.h index b3370d9b1..1b8af25b9 100644 --- a/src/command_func.h +++ b/src/command_func.h @@ -54,11 +54,13 @@ static const CommandCost CMD_ERROR = CommandCost(INVALID_STRING_ID); * Execute a command */ CommandCost DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint32 cmd, const char *text = NULL); +CommandCost DoCommand(const CommandContainer *container, uint32 flags); /** * Execute a network safe DoCommand function */ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallback *callback = NULL, const char *text = NULL, bool my_cmd = true); +bool DoCommandP(const CommandContainer *container, bool my_cmd = true); #ifdef ENABLE_NETWORK |