(svn r3714) Add functions to turn tiles into water and shore tiles

This commit is contained in:
tron
2006-03-01 21:00:44 +00:00
parent 78d666eb8e
commit 116fb6dff6
4 changed files with 45 additions and 28 deletions

View File

@@ -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);
}
}
}