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
 
@@ -1989,25 +1989,25 @@ static void DrawTrackBitsOverlay(TileInf
 
		track = CornerToTrackBits(halftile_corner);
 

	
 
		int offset;
 
		switch (track) {
 
			default: NOT_REACHED();
 
			case TRACK_BIT_UPPER: offset = RTO_N; break;
 
			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);
 
		}
 
	}
 
}
 

	
 
/**
 
 * Draw ground sprite and track bits
 
 * @param ti TileInfo
 
 * @param track TrackBits to draw
 
 */
 
static void DrawTrackBits(TileInfo *ti, TrackBits track)
 
{
0 comments (0 inline, 0 general)