mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 16:54:42 +00:00
Fix #6222: Advanced sprite layout sometimes showed incorrect railtype ground tile
This commit is contained in:
parent
3e608afa6c
commit
bc9b47d2e5
@ -2681,21 +2681,29 @@ bool SplitGroundSpriteForOverlay(const TileInfo *ti, SpriteID *ground, RailTrack
|
||||
bool snow_desert;
|
||||
switch (*ground) {
|
||||
case SPR_RAIL_TRACK_X:
|
||||
case SPR_MONO_TRACK_X:
|
||||
case SPR_MGLV_TRACK_X:
|
||||
snow_desert = false;
|
||||
*overlay_offset = RTO_X;
|
||||
break;
|
||||
|
||||
case SPR_RAIL_TRACK_Y:
|
||||
case SPR_MONO_TRACK_Y:
|
||||
case SPR_MGLV_TRACK_Y:
|
||||
snow_desert = false;
|
||||
*overlay_offset = RTO_Y;
|
||||
break;
|
||||
|
||||
case SPR_RAIL_TRACK_X_SNOW:
|
||||
case SPR_MONO_TRACK_X_SNOW:
|
||||
case SPR_MGLV_TRACK_X_SNOW:
|
||||
snow_desert = true;
|
||||
*overlay_offset = RTO_X;
|
||||
break;
|
||||
|
||||
case SPR_RAIL_TRACK_Y_SNOW:
|
||||
case SPR_MONO_TRACK_Y_SNOW:
|
||||
case SPR_MGLV_TRACK_Y_SNOW:
|
||||
snow_desert = true;
|
||||
*overlay_offset = RTO_Y;
|
||||
break;
|
||||
|
@ -402,8 +402,11 @@ static const SpriteID SPR_MONO_SINGLE_SOUTH = 1090;
|
||||
static const SpriteID SPR_MONO_SINGLE_EAST = 1091;
|
||||
static const SpriteID SPR_MONO_SINGLE_WEST = 1092;
|
||||
static const SpriteID SPR_MONO_TRACK_Y = 1093;
|
||||
static const SpriteID SPR_MONO_TRACK_X = 1094;
|
||||
static const SpriteID SPR_MONO_TRACK_BASE = 1100;
|
||||
static const SpriteID SPR_MONO_TRACK_N_S = 1117;
|
||||
static const SpriteID SPR_MONO_TRACK_Y_SNOW = 1119;
|
||||
static const SpriteID SPR_MONO_TRACK_X_SNOW = 1120;
|
||||
static const SpriteID SPR_MGLV_SINGLE_X = 1169;
|
||||
static const SpriteID SPR_MGLV_SINGLE_Y = 1170;
|
||||
static const SpriteID SPR_MGLV_SINGLE_NORTH = 1171;
|
||||
@ -411,7 +414,10 @@ static const SpriteID SPR_MGLV_SINGLE_SOUTH = 1172;
|
||||
static const SpriteID SPR_MGLV_SINGLE_EAST = 1173;
|
||||
static const SpriteID SPR_MGLV_SINGLE_WEST = 1174;
|
||||
static const SpriteID SPR_MGLV_TRACK_Y = 1175;
|
||||
static const SpriteID SPR_MGLV_TRACK_X = 1176;
|
||||
static const SpriteID SPR_MGLV_TRACK_BASE = 1182;
|
||||
static const SpriteID SPR_MGLV_TRACK_Y_SNOW = 1184;
|
||||
static const SpriteID SPR_MGLV_TRACK_X_SNOW = 1185;
|
||||
static const SpriteID SPR_MGLV_TRACK_N_S = 1199;
|
||||
static const SpriteID SPR_WAYPOINT_X_1 = SPR_OPENTTD_BASE + 78;
|
||||
static const SpriteID SPR_WAYPOINT_X_2 = SPR_OPENTTD_BASE + 79;
|
||||
|
Loading…
Reference in New Issue
Block a user