1
0
Fork 0

(svn r14896) -Codechange: remove an unused constant and the related dead code.

release/0.7
rubidium 2009-01-07 14:58:43 +00:00
parent 5fcf07f388
commit f5b23103d7
2 changed files with 3 additions and 4 deletions

View File

@ -517,7 +517,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac
if (!IsGeneratingWorld() && if (!IsGeneratingWorld() &&
_shift_pressed && _shift_pressed &&
IsLocalCompany() && IsLocalCompany() &&
!(cmd & (CMD_NETWORK_COMMAND | CMD_SHOW_NO_ERROR)) && !(cmd & CMD_NETWORK_COMMAND) &&
cmd_id != CMD_PAUSE) { cmd_id != CMD_PAUSE) {
/* estimate the cost. */ /* estimate the cost. */
SetTownRatingTestMode(true); SetTownRatingTestMode(true);

View File

@ -324,9 +324,8 @@ enum {
* This enumeration defines some flags which are binary-or'ed on a command. * This enumeration defines some flags which are binary-or'ed on a command.
*/ */
enum { enum {
CMD_NETWORK_COMMAND = 0x0800, ///< execute the command without sending it on the network CMD_NETWORK_COMMAND = 0x0100, ///< execute the command without sending it on the network
CMD_NO_TEST_IF_IN_NETWORK = 0x1000, ///< When enabled, the command will bypass the no-DC_EXEC round if in network CMD_NO_TEST_IF_IN_NETWORK = 0x0200, ///< When enabled, the command will bypass the no-DC_EXEC round if in network
CMD_SHOW_NO_ERROR = 0x2000, ///< do not show the error message
CMD_FLAGS_MASK = 0xFF00, ///< mask for all command flags CMD_FLAGS_MASK = 0xFF00, ///< mask for all command flags
CMD_ID_MASK = 0x00FF, ///< mask for the command ID CMD_ID_MASK = 0x00FF, ///< mask for the command ID
}; };