summaryrefslogtreecommitdiff
path: root/landscape.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-30 10:29:28 +0000
committertruelight <truelight@openttd.org>2004-12-30 10:29:28 +0000
commit31ac922166cc54665d7d25828d933395015254c4 (patch)
tree0f11f4c68ab4017777eeac6fcd26a9b9da7ae20c /landscape.c
parentfe657e9ee35cacf37b4939e632bb033206cf2d04 (diff)
downloadopenttd-31ac922166cc54665d7d25828d933395015254c4.tar.xz
(svn r1302) -Fix: [ 1091655 ] In some older maps somehow water is owned by
OWNER_NONE instead of OWNER_WATER. -Fix: On InitializeLandscape the map was made MP_WATER, but OWNER_NONE. When ConvertGroundTilesIntoWaterTiles() is not called, this gives big problems (see above). Now the owner is set to OWNER_WATER by default.
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 63e3fdd87..022f49557 100644
--- a/landscape.c
+++ b/landscape.c
@@ -483,7 +483,7 @@ void InitializeLandscape()
uint map_size = MapSize();
int i;
- memset(_map_owner, OWNER_NONE, map_size);
+ memset(_map_owner, OWNER_WATER, map_size);
memset(_map2, 0, map_size * sizeof(uint16));
memset(_map3_lo, 0, map_size);
memset(_map3_hi, 0, map_size);