Changeset - r19524:3487e101b5a9
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2012-07-30 19:38:17
frosch@openttd.org
(svn r24449) -Fix [FS#5254]: Coast and sea are not the same.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/rail_cmd.cpp
Show inline comments
 
@@ -2600,25 +2600,25 @@ static void TileLoop_Track(TileIndex til
 

	
 
set_ground:
 
	if (old_ground != new_ground) {
 
		SetRailGroundType(tile, new_ground);
 
		MarkTileDirtyByTile(tile);
 
	}
 
}
 

	
 

	
 
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();
 
			case TRACK_BIT_UPPER: tb = TRACK_BIT_LOWER; break;
 
			case TRACK_BIT_LOWER: tb = TRACK_BIT_UPPER; break;
 
			case TRACK_BIT_LEFT:  tb = TRACK_BIT_RIGHT; break;
 
			case TRACK_BIT_RIGHT: tb = TRACK_BIT_LEFT;  break;
 
		}
 
		return CombineTrackStatus(TrackBitsToTrackdirBits(tb), TRACKDIR_BIT_NONE);
 
	}
 

	
 
	if (mode != TRANSPORT_RAIL) return 0;
0 comments (0 inline, 0 general)