summaryrefslogtreecommitdiff
path: root/src/command_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-08 14:55:28 +0000
committerrubidium <rubidium@openttd.org>2009-01-08 14:55:28 +0000
commit78c43297e276af4f4403108b5ad93715897c62a9 (patch)
tree9fe08d5845cf6f8e94b83f9103044e7460ced669 /src/command_func.h
parent0e1127e8b5b94d5966333662d0cd13e306b39cbb (diff)
downloadopenttd-78c43297e276af4f4403108b5ad93715897c62a9.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.h2
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