summaryrefslogtreecommitdiff
path: root/unmovable_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-04 12:13:24 +0000
committertron <tron@openttd.org>2005-06-04 12:13:24 +0000
commitff0030936e9ed7ae92d0a1fef2984b2eed608214 (patch)
tree11a93b883c78b67c9c0fd0e09265d93450542264 /unmovable_cmd.c
parenta9b95b3cbb397e5a644c8310d33d046b2737ce16 (diff)
downloadopenttd-ff0030936e9ed7ae92d0a1fef2984b2eed608214.tar.xz
(svn r2408) Introduce SetTileOwner() and use it
Diffstat (limited to 'unmovable_cmd.c')
-rw-r--r--unmovable_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unmovable_cmd.c b/unmovable_cmd.c
index b1a94e167..e7673c599 100644
--- a/unmovable_cmd.c
+++ b/unmovable_cmd.c
@@ -358,7 +358,7 @@ void GenerateUnmovables(void)
continue;
SetTileType(tile, MP_UNMOVABLE);
_map5[tile] = 0;
- _map_owner[tile] = OWNER_NONE;
+ SetTileOwner(tile, OWNER_NONE);
if (--j == 0)
break;
}
@@ -390,7 +390,7 @@ restart:
SetTileType(tile, MP_UNMOVABLE);
_map5[tile] = 1;
- _map_owner[tile] = OWNER_NONE;
+ SetTileOwner(tile, OWNER_NONE);
} while (--i);
}
@@ -399,7 +399,7 @@ static void ChangeTileOwner_Unmovable(uint tile, byte old_player, byte new_playe
if (!IsTileOwner(tile, old_player)) return;
if (_map5[tile]==3 && new_player != 255) {
- _map_owner[tile] = new_player;
+ SetTileOwner(tile, new_player);
} else {
DoClearSquare(tile);
}