Changeset - r15731:e5f7c85a5982
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-08-08 08:52:47
frosch@openttd.org
(svn r20408) -Fix [FS#4013]: PBS reservations were always displayed on halftile foundations if the railtype uses overlays.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/rail_cmd.cpp
Show inline comments
 
@@ -1995,13 +1995,13 @@ static void DrawTrackBitsOverlay(TileInf
 
			case TRACK_BIT_LOWER: offset = RTO_S; break;
 
			case TRACK_BIT_RIGHT: offset = RTO_E; break;
 
			case TRACK_BIT_LEFT:  offset = RTO_W; break;
 
		}
 

	
 
		DrawTrackSprite(ground + offset, PAL_NONE, ti, fake_slope);
 
		if (HasReservedTracks(ti->tile, track)) {
 
		if (_settings_client.gui.show_track_reservation && HasReservedTracks(ti->tile, track)) {
 
			DrawTrackSprite(overlay + offset, PALETTE_CRASH, ti, fake_slope);
 
		}
 
	}
 
}
 

	
 
/**
0 comments (0 inline, 0 general)