mirror of https://github.com/OpenTTD/OpenTTD
(svn r11838) -Fix (r11320): draw correctly canal next to half flooded rail tile
parent
e281180d06
commit
27e5deb719
|
@ -393,6 +393,7 @@ static bool IsWateredTile(TileIndex tile)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case MP_RAILWAY: return GetRailGroundType(tile) == RAIL_GROUND_WATER;
|
||||||
case MP_STATION: return IsOilRig(tile) || IsDock(tile) || IsBuoy(tile);
|
case MP_STATION: return IsOilRig(tile) || IsDock(tile) || IsBuoy(tile);
|
||||||
case MP_INDUSTRY: return (GetIndustrySpec(GetIndustryType(tile))->behaviour & INDUSTRYBEH_BUILT_ONWATER) != 0;
|
case MP_INDUSTRY: return (GetIndustrySpec(GetIndustryType(tile))->behaviour & INDUSTRYBEH_BUILT_ONWATER) != 0;
|
||||||
default: return false;
|
default: return false;
|
||||||
|
|
Loading…
Reference in New Issue