Skip to content

Commit

Permalink
Fix #7958: Use NewGRF provided catenary sprites when either front or …
Browse files Browse the repository at this point in the history
…back is overridden
  • Loading branch information
nielsmh committed Feb 9, 2020
1 parent 4b5756b commit 4758f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tunnelbridge_cmd.cpp
Expand Up @@ -1120,7 +1120,7 @@ static void GetBridgeRoadCatenary(const RoadTypeInfo *rti, TileIndex head_tile,

spr_back = GetCustomRoadSprite(rti, head_tile, ROTSG_CATENARY_BACK, head ? TCX_NORMAL : TCX_ON_BRIDGE);
spr_front = GetCustomRoadSprite(rti, head_tile, ROTSG_CATENARY_FRONT, head ? TCX_NORMAL : TCX_ON_BRIDGE);
if (spr_back == 0 || spr_front == 0) {
if (spr_back == 0 && spr_front == 0) {
spr_back = SPR_TRAMWAY_BASE + back_offsets[offset];
spr_front = SPR_TRAMWAY_BASE + front_offsets[offset];
} else {
Expand Down

0 comments on commit 4758f7a

Please sign in to comment.