Loading

Paste #pdjnledoy

  1. diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
  2. index 6075fb1fd..cb465be85 100644
  3. --- a/src/road_cmd.cpp
  4. +++ b/src/road_cmd.cpp
  5. @@ -1438,8 +1438,8 @@ void DrawRoadTypeCatenary(const TileInfo *ti, RoadTypeIdentifier rtid, RoadBits
  6.         front = SPR_TRAMWAY_BASE + _road_frontwire_sprites_1[rb];
  7.     }
  8.  
  9. -   if (back != 0) AddSortableSpriteToDraw(back,  PAL_NONE, ti->x, ti->y, 16, 16, TILE_HEIGHT + BB_HEIGHT_UNDER_BRIDGE, ti->z, IsTransparencySet(TO_CATENARY));
  10. -   if (front != 0) AddSortableSpriteToDraw(front, PAL_NONE, ti->x, ti->y, 16, 16, TILE_HEIGHT + BB_HEIGHT_UNDER_BRIDGE, ti->z, IsTransparencySet(TO_CATENARY));
  11. +   if (back != 0) AddSortableSpriteToDraw(back,  COMPANY_SPRITE_COLOUR(GetRoadOwner(ti->tile, rtid.basetype)), ti->x, ti->y, 16, 16, TILE_HEIGHT + BB_HEIGHT_UNDER_BRIDGE, ti->z, IsTransparencySet(TO_CATENARY));
  12. +   if (front != 0) AddSortableSpriteToDraw(front, COMPANY_SPRITE_COLOUR(GetRoadOwner(ti->tile, rtid.basetype)), ti->x, ti->y, 16, 16, TILE_HEIGHT + BB_HEIGHT_UNDER_BRIDGE, ti->z, IsTransparencySet(TO_CATENARY));
  13.  }
  14.  
  15.  /**
  16. @@ -1690,7 +1690,7 @@ static void DrawTile_Road(TileInfo *ti)
  17.                     if (ground != 0) DrawGroundSprite(ground + axis, PAL_NONE);
  18.                 }
  19.             }
  20. -  
  21. +
  22.             /* Draw tram overlay */
  23.             if (tram_rti != NULL) {
  24.                 if (tram_rti->UsesOverlay()) {

Comments