summaryrefslogtreecommitdiff
path: root/src/command_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-11 20:39:38 +0000
committerrubidium <rubidium@openttd.org>2010-01-11 20:39:38 +0000
commit23658193124f18a6efd6f74d2a704b32464c9973 (patch)
tree69400627cb23c1e245dfe544a7c29c76c69c1e06 /src/command_func.h
parentebe99fd4935d54466730095e7a9f239181d5ba7b (diff)
downloadopenttd-23658193124f18a6efd6f74d2a704b32464c9973.tar.xz
(svn r18785) -Codechange: rewrite/rework DoCommandP in order to simplify it, reduce duplication and remove gotos.
Diffstat (limited to 'src/command_func.h')
-rw-r--r--src/command_func.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command_func.h b/src/command_func.h
index 85b089398..69464509b 100644
--- a/src/command_func.h
+++ b/src/command_func.h
@@ -70,6 +70,9 @@ CommandCost DoCommand(const CommandContainer *container, DoCommandFlag flags);
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);
+/** Internal helper function for DoCommandP. Do not use. */
+CommandCost DoCommandPInternal(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallback *callback, const char *text, bool my_cmd, bool estimate_only);
+
#ifdef ENABLE_NETWORK
/**
* Send a command over the network