summaryrefslogtreecommitdiff
path: root/src/command_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-11 10:11:26 +0000
committerrubidium <rubidium@openttd.org>2010-04-11 10:11:26 +0000
commit5c7aaf11badc8be299ca4fe3c1b988d49a237d74 (patch)
tree442b69a296e821329b355828840a087c1f49422c /src/command_func.h
parent9b7d71699d2ae0016e721d425b12ad516bd88101 (diff)
downloadopenttd-5c7aaf11badc8be299ca4fe3c1b988d49a237d74.tar.xz
(svn r19602) -Codechange: add the name of the command to the desync logs
Diffstat (limited to 'src/command_func.h')
-rw-r--r--src/command_func.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command_func.h b/src/command_func.h
index 8bda62693..b7738f4ef 100644
--- a/src/command_func.h
+++ b/src/command_func.h
@@ -67,6 +67,10 @@ bool IsValidCommand(uint32 cmd);
*/
byte GetCommandFlags(uint32 cmd);
/**
+ * Returns the name of a given command.
+ */
+const char *GetCommandName(uint32 cmd);
+/**
* Returns the current money available which can be used for a command.
*/
Money GetAvailableMoneyForCommand();