summaryrefslogtreecommitdiff
path: root/src/command_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-28 14:37:19 +0000
committerrubidium <rubidium@openttd.org>2008-12-28 14:37:19 +0000
commit87e5a8b52bf2f200467d65c1e17fd79548d31129 (patch)
tree36bbbb5d389d41119ee184607bc012666dda7812 /src/command_type.h
parent53679122af1e0a68bbe4e9c1f73526dd7e118df6 (diff)
downloadopenttd-87e5a8b52bf2f200467d65c1e17fd79548d31129.tar.xz
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
Diffstat (limited to 'src/command_type.h')
-rw-r--r--src/command_type.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command_type.h b/src/command_type.h
index bfe1a00fd..7a9f8a63c 100644
--- a/src/command_type.h
+++ b/src/command_type.h
@@ -356,9 +356,10 @@ enum {
* @param flags Flags for the command, from the DC_* enumeration
* @param p1 Additional data for the command
* @param p2 Additional data for the command
+ * @param text Additional text
* @return The CommandCost of the command, which can be succeeded or failed.
*/
-typedef CommandCost CommandProc(TileIndex tile, uint32 flags, uint32 p1, uint32 p2);
+typedef CommandCost CommandProc(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text);
/**
* Define a command with the flags which belongs to it.