summaryrefslogtreecommitdiff
path: root/src/command_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-07 21:08:35 +0000
committerrubidium <rubidium@openttd.org>2010-12-07 21:08:35 +0000
commite170b1d83e0142fdcc4260a2f3d623324de1415f (patch)
tree066710c1cb2ee5e81b177ca38203c95324149ac5 /src/command_func.h
parentdf410fd7ed6a4ad36d59f4eb9c84138437cb8a0c (diff)
downloadopenttd-e170b1d83e0142fdcc4260a2f3d623324de1415f.tar.xz
(svn r21427) -Add: helper function to determine whether a command may be executed
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 3ed4d1e60..212e71ddf 100644
--- a/src/command_func.h
+++ b/src/command_func.h
@@ -75,6 +75,8 @@ const char *GetCommandName(uint32 cmd);
*/
Money GetAvailableMoneyForCommand();
+bool IsCommandAllowedWhilePaused(uint32 cmd);
+
/**
* Extracts the DC flags needed for DoCommand from the flags returned by GetCommandFlags
* @param cmd_flags Flags from GetCommandFlags