summaryrefslogtreecommitdiff
path: root/src
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
commit5d379d6696e216452c573f854f6b396514e1d1e6 (patch)
tree0fbd095f903efbbe1980041fcf08055908b9e952 /src
parentadf1e34ead8a28d3b11252545130852a9db1acf8 (diff)
downloadopenttd-5d379d6696e216452c573f854f6b396514e1d1e6.tar.xz
(svn r11838) -Fix (r11320): draw correctly canal next to half flooded rail tile
Diffstat (limited to 'src')
-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;