mirror of https://github.com/OpenTTD/OpenTTD
(svn r27207) -Codechange: Replace some magic integers with the appropiate symbols.
parent
8997ed8cf8
commit
a6e4e5d444
|
@ -2059,16 +2059,16 @@ static void DrawTrackBitsOverlay(TileInfo *ti, TrackBits track, const RailtypeIn
|
||||||
/* Half-tile foundation, no track here? */
|
/* Half-tile foundation, no track here? */
|
||||||
} else if (ti->tileh == SLOPE_NW && track == TRACK_BIT_Y) {
|
} else if (ti->tileh == SLOPE_NW && track == TRACK_BIT_Y) {
|
||||||
DrawGroundSprite(ground + RTO_SLOPE_NW, PAL_NONE);
|
DrawGroundSprite(ground + RTO_SLOPE_NW, PAL_NONE);
|
||||||
if (pbs != TRACK_BIT_NONE) DrawGroundSprite(overlay + 9, PALETTE_CRASH);
|
if (pbs != TRACK_BIT_NONE) DrawGroundSprite(overlay + RTO_SLOPE_NW, PALETTE_CRASH);
|
||||||
} else if (ti->tileh == SLOPE_NE && track == TRACK_BIT_X) {
|
} else if (ti->tileh == SLOPE_NE && track == TRACK_BIT_X) {
|
||||||
DrawGroundSprite(ground + RTO_SLOPE_NE, PAL_NONE);
|
DrawGroundSprite(ground + RTO_SLOPE_NE, PAL_NONE);
|
||||||
if (pbs != TRACK_BIT_NONE) DrawGroundSprite(overlay + 6, PALETTE_CRASH);
|
if (pbs != TRACK_BIT_NONE) DrawGroundSprite(overlay + RTO_SLOPE_NE, PALETTE_CRASH);
|
||||||
} else if (ti->tileh == SLOPE_SE && track == TRACK_BIT_Y) {
|
} else if (ti->tileh == SLOPE_SE && track == TRACK_BIT_Y) {
|
||||||
DrawGroundSprite(ground + RTO_SLOPE_SE, PAL_NONE);
|
DrawGroundSprite(ground + RTO_SLOPE_SE, PAL_NONE);
|
||||||
if (pbs != TRACK_BIT_NONE) DrawGroundSprite(overlay + 7, PALETTE_CRASH);
|
if (pbs != TRACK_BIT_NONE) DrawGroundSprite(overlay + RTO_SLOPE_SE, PALETTE_CRASH);
|
||||||
} else if (ti->tileh == SLOPE_SW && track == TRACK_BIT_X) {
|
} else if (ti->tileh == SLOPE_SW && track == TRACK_BIT_X) {
|
||||||
DrawGroundSprite(ground + RTO_SLOPE_SW, PAL_NONE);
|
DrawGroundSprite(ground + RTO_SLOPE_SW, PAL_NONE);
|
||||||
if (pbs != TRACK_BIT_NONE) DrawGroundSprite(overlay + 8, PALETTE_CRASH);
|
if (pbs != TRACK_BIT_NONE) DrawGroundSprite(overlay + RTO_SLOPE_SW, PALETTE_CRASH);
|
||||||
} else {
|
} else {
|
||||||
switch (track) {
|
switch (track) {
|
||||||
/* Draw single ground sprite when not overlapping. No track overlay
|
/* Draw single ground sprite when not overlapping. No track overlay
|
||||||
|
|
Loading…
Reference in New Issue