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 /water_cmd.c | |
parent | 0c4ecbe9ece42d071a4f4e4b6d506be32030cb4c (diff) | |
download | openttd-74541c1dcca9867c4764d43c1d39f129b52af805.tar.xz |
(svn r2408) Introduce SetTileOwner() and use it
Diffstat (limited to 'water_cmd.c')
-rw-r--r-- | water_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/water_cmd.c b/water_cmd.c index 5c476f8c6..31bbb70fa 100644 --- a/water_cmd.c +++ b/water_cmd.c @@ -689,7 +689,7 @@ static void ChangeTileOwner_Water(uint tile, byte old_player, byte new_player) if (!IsTileOwner(tile, old_player)) return; if (new_player != 255) { - _map_owner[tile] = new_player; + SetTileOwner(tile, new_player); } else { DoCommandByTile(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR); } |