summaryrefslogtreecommitdiff
path: root/unmovable_cmd.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-10-14 15:49:43 +0000
committerDarkvater <Darkvater@openttd.org>2006-10-14 15:49:43 +0000
commita85d679f545ea7fec03db426ec033e5e83258a91 (patch)
tree4d65683dddf832ac860c3ff0f26f99db4e9ea997 /unmovable_cmd.c
parent94339a884d1c7eaaecc8a5963cb985ca17d3e7df (diff)
downloadopenttd-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 'unmovable_cmd.c')
-rw-r--r--unmovable_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unmovable_cmd.c b/unmovable_cmd.c
index a38a34981..84f4dffb2 100644
--- a/unmovable_cmd.c
+++ b/unmovable_cmd.c
@@ -388,7 +388,7 @@ static void ChangeTileOwner_Unmovable(TileIndex tile, PlayerID old_player, Playe
{
if (!IsTileOwner(tile, old_player)) return;
- if (IsOwnedLand(tile) && new_player != OWNER_SPECTATOR) {
+ if (IsOwnedLand(tile) && new_player != PLAYER_SPECTATOR) {
SetTileOwner(tile, new_player);
} else {
DoClearSquare(tile);