MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetCommandFlags

Function GetCommandFlags

src/command.cpp:118–123  ·  view source on GitHub ↗

* This function mask the parameter with CMD_ID_MASK and returns * the flags which belongs to the given command. * * @param cmd The integer value of the command * @return The flags for this command */

Source from the content-addressed store, hash-verified

116 * @return The flags for this command
117 */
118CommandFlags GetCommandFlags(Commands cmd)
119{
120 assert(IsValidCommand(cmd));
121
122 return _command_proc_table[cmd].flags;
123}
124
125/**
126 * This function mask the parameter with CMD_ID_MASK and returns

Callers 2

ReceiveCommandMethod · 0.50

Calls 1

IsValidCommandFunction · 0.85

Tested by

no test coverage detected