landscape.c
changeset 3773 996897ffc8ea
parent 3645 86af43f87885
child 3933 a5f08e17f4a0
--- a/landscape.c	Sun May 07 07:01:48 2006 +0000
+++ b/landscape.c	Sun May 07 07:55:05 2006 +0000
@@ -396,10 +396,9 @@
 void ConvertGroundTilesIntoWaterTiles(void)
 {
 	TileIndex tile = 0;
-	uint h;
 
 	for (tile = 0; tile < MapSize(); ++tile) {
-		if (IsTileType(tile, MP_CLEAR) && GetTileSlope(tile, &h) == SLOPE_FLAT && h == 0) {
+		if (IsTileType(tile, MP_CLEAR) && GetTileMaxZ(tile) == 0) {
 			MakeWater(tile);
 		}
 	}