diff options
Diffstat (limited to 'water_cmd.c')
-rw-r--r-- | water_cmd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/water_cmd.c b/water_cmd.c index 3a5c3924e..fcfa4211b 100644 --- a/water_cmd.c +++ b/water_cmd.c @@ -39,9 +39,10 @@ static void FloodVehicle(Vehicle *v); static bool IsClearWaterTile(TileIndex tile) { - TileInfo ti; - FindLandscapeHeightByTile(&ti, tile); - return (ti.type == MP_WATER && ti.tileh == 0 && ti.map5 == 0); + return + IsTileType(tile, MP_WATER) && + _m[tile].m5 == 0 && + GetTileSlope(tile, NULL) == 0; } /** Build a ship depot. |