summaryrefslogtreecommitdiff
path: root/src/command_type.h
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-19 20:50:36 +0000
committertruebrain <truebrain@openttd.org>2011-12-19 20:50:36 +0000
commit577fe0238e7f4681fdf96b8aed241908a9f72de9 (patch)
tree96a9e5a6d7ef530dcd88d42d633a479ba7e18e6d /src/command_type.h
parent561b25d0319674716b51d63594e146132d0a33e3 (diff)
downloadopenttd-577fe0238e7f4681fdf96b8aed241908a9f72de9.tar.xz
(svn r23602) -Add: support for DEITY commands, commands where no real company was involved in (Rubidium)
Diffstat (limited to 'src/command_type.h')
-rw-r--r--src/command_type.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/command_type.h b/src/command_type.h
index 299534080..fd8f0d9bf 100644
--- a/src/command_type.h
+++ b/src/command_type.h
@@ -346,14 +346,15 @@ enum FlaggedCommands {
* This enumeration defines flags for the _command_proc_table.
*/
enum CommandFlags {
- CMD_SERVER = 0x01, ///< the command can only be initiated by the server
- CMD_SPECTATOR = 0x02, ///< the command may be initiated by a spectator
- CMD_OFFLINE = 0x04, ///< the command cannot be executed in a multiplayer game; single-player only
- CMD_AUTO = 0x08, ///< set the DC_AUTO flag on this command
- CMD_ALL_TILES = 0x10, ///< allow this command also on MP_VOID tiles
- CMD_NO_TEST = 0x20, ///< the command's output may differ between test and execute due to town rating changes etc.
- CMD_NO_WATER = 0x40, ///< set the DC_NO_WATER flag on this command
- CMD_CLIENT_ID = 0x80, ///< set p2 with the ClientID of the sending client.
+ CMD_SERVER = 0x001, ///< the command can only be initiated by the server
+ CMD_SPECTATOR = 0x002, ///< the command may be initiated by a spectator
+ CMD_OFFLINE = 0x004, ///< the command cannot be executed in a multiplayer game; single-player only
+ CMD_AUTO = 0x008, ///< set the DC_AUTO flag on this command
+ CMD_ALL_TILES = 0x010, ///< allow this command also on MP_VOID tiles
+ CMD_NO_TEST = 0x020, ///< the command's output may differ between test and execute due to town rating changes etc.
+ CMD_NO_WATER = 0x040, ///< set the DC_NO_WATER flag on this command
+ CMD_CLIENT_ID = 0x080, ///< set p2 with the ClientID of the sending client.
+ CMD_DEITY = 0x100, ///< the command may be executed by COMPANY_DEITY
};
DECLARE_ENUM_AS_BIT_SET(CommandFlags)