From 23658193124f18a6efd6f74d2a704b32464c9973 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 11 Jan 2010 20:39:38 +0000 Subject: (svn r18785) -Codechange: rewrite/rework DoCommandP in order to simplify it, reduce duplication and remove gotos. --- src/command_func.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/command_func.h') 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 -- cgit v1.2.3-54-g00ecf