summaryrefslogtreecommitdiff
path: root/landscape.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 /landscape.c
parenta9b95b3cbb397e5a644c8310d33d046b2737ce16 (diff)
downloadopenttd-ff0030936e9ed7ae92d0a1fef2984b2eed608214.tar.xz
(svn r2408) Introduce SetTileOwner() and use it
Diffstat (limited to 'landscape.c')
-rw-r--r--landscape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/landscape.c b/landscape.c
index 881ca67a1..1f5cffddb 100644
--- a/landscape.c
+++ b/landscape.c
@@ -451,7 +451,7 @@ void ConvertGroundTilesIntoWaterTiles(void)
if (IsTileType(tile, MP_CLEAR) && GetTileSlope(tile, &h) == 0 && h == 0) {
SetTileType(tile, MP_WATER);
_map5[tile] = 0;
- _map_owner[tile] = OWNER_WATER;
+ SetTileOwner(tile, OWNER_WATER);
}
}
}