1046 pal = PALETTE_TO_TRANSPARENT; |
1046 pal = PALETTE_TO_TRANSPARENT; |
1047 } else { |
1047 } else { |
1048 pal = psid->pal; |
1048 pal = psid->pal; |
1049 } |
1049 } |
1050 |
1050 |
|
1051 if (GetRailType(rampsouth) == RAILTYPE_ELECTRIC) { |
|
1052 DrawCatenary(ti); |
|
1053 } |
|
1054 |
1051 /* draw roof, the component of the bridge which is logically between the vehicle and the camera */ |
1055 /* draw roof, the component of the bridge which is logically between the vehicle and the camera */ |
1052 if (axis == AXIS_X) { |
1056 if (axis == AXIS_X) { |
1053 y += 12; |
1057 y += 12; |
1054 if (image & SPRITE_MASK) AddSortableSpriteToDraw(image, pal, x, y, 16, 1, 0x28, z); |
1058 if (image & SPRITE_MASK) AddSortableSpriteToDraw(image, pal, x, y, 16, 1, 0x28, z); |
1055 } else { |
1059 } else { |
1056 x += 12; |
1060 x += 12; |
1057 if (image & SPRITE_MASK) AddSortableSpriteToDraw(image, pal, x, y, 1, 16, 0x28, z); |
1061 if (image & SPRITE_MASK) AddSortableSpriteToDraw(image, pal, x, y, 1, 16, 0x28, z); |
1058 } |
1062 } |
1059 |
|
1060 if (GetRailType(rampsouth) == RAILTYPE_ELECTRIC) DrawCatenary(ti); |
|
1061 |
1063 |
1062 psid++; |
1064 psid++; |
1063 if (ti->z + 5 == z) { |
1065 if (ti->z + 5 == z) { |
1064 /* draw poles below for small bridges */ |
1066 /* draw poles below for small bridges */ |
1065 if (psid->sprite != 0) { |
1067 if (psid->sprite != 0) { |