diff options
author | Darkvater <Darkvater@openttd.org> | 2006-10-14 15:49:43 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-10-14 15:49:43 +0000 |
commit | a85d679f545ea7fec03db426ec033e5e83258a91 (patch) | |
tree | 4d65683dddf832ac860c3ff0f26f99db4e9ea997 /command.c | |
parent | 94339a884d1c7eaaecc8a5963cb985ca17d3e7df (diff) | |
download | openttd-a85d679f545ea7fec03db426ec033e5e83258a91.tar.xz |
(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to PLAYER_SPECTATOR and
put it into player.h where it belongs (instead of map.h)
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -426,7 +426,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, /** Spectator has no rights except for the dedicated server which * is a spectator but is the server, so can do anything */ - if (_current_player == OWNER_SPECTATOR && !_network_dedicated) { + if (_current_player == PLAYER_SPECTATOR && !_network_dedicated) { ShowErrorMessage(_error_message, error_part1, x, y); _cmd_text = NULL; return false; @@ -500,7 +500,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, if (_networking && !(cmd & CMD_NETWORK_COMMAND)) { if (_network_dedicated) _local_player = 0; NetworkSend_Command(tile, p1, p2, cmd, callback); - if (_network_dedicated) _local_player = OWNER_SPECTATOR; + if (_network_dedicated) _local_player = PLAYER_SPECTATOR; _docommand_recursive = 0; _cmd_text = NULL; return true; |