diff options
author | frosch <frosch@openttd.org> | 2010-09-05 13:18:54 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-09-05 13:18:54 +0000 |
commit | e9cd81953ac0e9efa0149b134c75fa8ba45cbc9c (patch) | |
tree | 2797a65c9f2d38168ffaa6022ea40bcbe350e577 /src/water_cmd.cpp | |
parent | 435c8d33b0658c97648f18fbc38682ce09e321b2 (diff) | |
download | openttd-e9cd81953ac0e9efa0149b134c75fa8ba45cbc9c.tar.xz |
(svn r20741) -Cleanup: Use IsTileOnWater() in more places.
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r-- | src/water_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index 6f24956b1..8b17d968f 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -485,7 +485,7 @@ static bool IsWateredTile(TileIndex tile, Direction from) if ((IsTileType(src_tile, MP_STATION) && IsOilRig(src_tile)) || (IsTileType(src_tile, MP_INDUSTRY))) return true; - return GetWaterClass(tile) != WATER_CLASS_INVALID; + return IsTileOnWater(tile); } return (IsDock(tile) && GetTileSlope(tile, NULL) == SLOPE_FLAT) || IsBuoy(tile); |