Mercurial > hg > openttd
changeset 19546:9f97cbba67e5 draft
(svn r24449) -Fix [FS#5254]: Coast and sea are not the same.
author | frosch <frosch@openttd.org> |
---|---|
date | Mon, 30 Jul 2012 19:38:17 +0000 |
parents | f69337274149 |
children | 22d4b5a92a8e |
files | src/rail_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -2609,7 +2609,7 @@ static TrackStatus GetTileTrackStatus_Track(TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side) { /* Case of half tile slope with water. */ - if (mode == TRANSPORT_WATER && IsPlainRail(tile) && GetRailGroundType(tile) == RAIL_GROUND_WATER) { + if (mode == TRANSPORT_WATER && IsPlainRail(tile) && GetRailGroundType(tile) == RAIL_GROUND_WATER && IsSlopeWithOneCornerRaised(GetTileSlope(tile))) { TrackBits tb = GetTrackBits(tile); switch (tb) { default: NOT_REACHED();