summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-01-13 17:55:00 +0000
committersmatz <smatz@openttd.org>2008-01-13 17:55:00 +0000
commit27e5deb719f91bc26e8bf39a11acff6367062417 (patch)
tree0fbd095f903efbbe1980041fcf08055908b9e952
parente281180d06d7ed527d0f40259d072e476cc51790 (diff)
downloadopenttd-27e5deb719f91bc26e8bf39a11acff6367062417.tar.xz
(svn r11838) -Fix (r11320): draw correctly canal next to half flooded rail tile
-rw-r--r--src/water_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index 45d6f514c..119432abe 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -393,6 +393,7 @@ static bool IsWateredTile(TileIndex tile)
return false;
}
+ case MP_RAILWAY: return GetRailGroundType(tile) == RAIL_GROUND_WATER;
case MP_STATION: return IsOilRig(tile) || IsDock(tile) || IsBuoy(tile);
case MP_INDUSTRY: return (GetIndustrySpec(GetIndustryType(tile))->behaviour & INDUSTRYBEH_BUILT_ONWATER) != 0;
default: return false;