diff options
author | tron <tron@openttd.org> | 2006-03-01 21:00:44 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-01 21:00:44 +0000 |
commit | 819d210acc501e10f20d83cd72176862e8068758 (patch) | |
tree | 04b51cfb2ff11a7b3f71f73a94c09725207e46d8 /landscape.c | |
parent | e7e8466fb637c4e0f23550d4c1f27b07224b27b1 (diff) | |
download | openttd-819d210acc501e10f20d83cd72176862e8068758.tar.xz |
(svn r3714) Add functions to turn tiles into water and shore tiles
Diffstat (limited to 'landscape.c')
-rw-r--r-- | landscape.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/landscape.c b/landscape.c index 89ce548b2..3e4a312f9 100644 --- a/landscape.c +++ b/landscape.c @@ -15,6 +15,7 @@ #include "vehicle.h" #include "variables.h" #include "void.h" +#include "water_map.h" extern const TileTypeProcs _tile_type_clear_procs, @@ -450,9 +451,7 @@ void ConvertGroundTilesIntoWaterTiles(void) for (tile = 0; tile < MapSize(); ++tile) { if (IsTileType(tile, MP_CLEAR) && GetTileSlope(tile, &h) == 0 && h == 0) { - SetTileType(tile, MP_WATER); - SetTileOwner(tile, OWNER_WATER); - _m[tile].m5 = 0; + MakeWater(tile); } } } |