summaryrefslogtreecommitdiff
path: root/src/command_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-14 20:38:56 +0000
committerrubidium <rubidium@openttd.org>2011-11-14 20:38:56 +0000
commitf60042942473640e60136e7a43d2bc6a4c824a26 (patch)
treef338a814fbf9e1312236b184e07833babf0f8a27 /src/command_func.h
parent15f671279df2696aad13aca3d431ee4a988694f3 (diff)
downloadopenttd-f60042942473640e60136e7a43d2bc6a4c824a26.tar.xz
(svn r23215) -Codechange: stricter type safety for CommandFlags
Diffstat (limited to 'src/command_func.h')
-rw-r--r--src/command_func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command_func.h b/src/command_func.h
index c741c7924..ef7971a0b 100644
--- a/src/command_func.h
+++ b/src/command_func.h
@@ -49,7 +49,7 @@ void NetworkSendCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, Comman
extern Money _additional_cash_required;
bool IsValidCommand(uint32 cmd);
-byte GetCommandFlags(uint32 cmd);
+CommandFlags GetCommandFlags(uint32 cmd);
const char *GetCommandName(uint32 cmd);
Money GetAvailableMoneyForCommand();
bool IsCommandAllowedWhilePaused(uint32 cmd);
@@ -59,7 +59,7 @@ bool IsCommandAllowedWhilePaused(uint32 cmd);
* @param cmd_flags Flags from GetCommandFlags
* @return flags for DoCommand
*/
-static inline DoCommandFlag CommandFlagsToDCFlags(uint cmd_flags)
+static inline DoCommandFlag CommandFlagsToDCFlags(CommandFlags cmd_flags)
{
DoCommandFlag flags = DC_NONE;
if (cmd_flags & CMD_NO_WATER) flags |= DC_NO_WATER;