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 | 116fb6dff628c193fb73b00d9266fd80055a165b (patch) | |
tree | 04b51cfb2ff11a7b3f71f73a94c09725207e46d8 /landscape.c | |
parent | 78d666eb8e10bd199db091954d65d41847e736db (diff) | |
download | openttd-116fb6dff628c193fb73b00d9266fd80055a165b.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); } } } |