diff options
author | tron <tron@openttd.org> | 2005-06-04 12:13:24 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-06-04 12:13:24 +0000 |
commit | 74541c1dcca9867c4764d43c1d39f129b52af805 (patch) | |
tree | 11a93b883c78b67c9c0fd0e09265d93450542264 /unmovable_cmd.c | |
parent | 0c4ecbe9ece42d071a4f4e4b6d506be32030cb4c (diff) | |
download | openttd-74541c1dcca9867c4764d43c1d39f129b52af805.tar.xz |
(svn r2408) Introduce SetTileOwner() and use it
Diffstat (limited to 'unmovable_cmd.c')
-rw-r--r-- | unmovable_cmd.c | 6 |
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); } |