equal
deleted
inserted
replaced
990 } |
990 } |
991 } |
991 } |
992 |
992 |
993 DrawGroundSprite(image, pal); |
993 DrawGroundSprite(image, pal); |
994 |
994 |
995 if (road != ROAD_NONE) { |
|
996 DisallowedRoadDirections drd = GetDisallowedRoadDirections(ti->tile); |
|
997 if (drd != DRD_NONE) { |
|
998 DrawRoadDetail(SPR_ONEWAY_BASE + drd - 1 + ((road == ROAD_X) ? 0 : 3), ti, 8, 8, 0); |
|
999 } |
|
1000 } |
|
1001 |
|
1002 /* For tram we overlay the road graphics with either tram tracks only |
995 /* For tram we overlay the road graphics with either tram tracks only |
1003 * (when there is actual road beneath the trams) or with tram tracks |
996 * (when there is actual road beneath the trams) or with tram tracks |
1004 * and some dirts which hides the road graphics */ |
997 * and some dirts which hides the road graphics */ |
1005 if (tram != ROAD_NONE) { |
998 if (tram != ROAD_NONE) { |
1006 if (ti->tileh != SLOPE_FLAT) { |
999 if (ti->tileh != SLOPE_FLAT) { |
1008 } else { |
1001 } else { |
1009 image = _road_tile_sprites_1[tram] - SPR_ROAD_Y; |
1002 image = _road_tile_sprites_1[tram] - SPR_ROAD_Y; |
1010 } |
1003 } |
1011 image += (road == ROAD_NONE) ? SPR_TRAMWAY_TRAM : SPR_TRAMWAY_OVERLAY; |
1004 image += (road == ROAD_NONE) ? SPR_TRAMWAY_TRAM : SPR_TRAMWAY_OVERLAY; |
1012 DrawGroundSprite(image, pal); |
1005 DrawGroundSprite(image, pal); |
|
1006 } |
|
1007 |
|
1008 if (road != ROAD_NONE) { |
|
1009 DisallowedRoadDirections drd = GetDisallowedRoadDirections(ti->tile); |
|
1010 if (drd != DRD_NONE) { |
|
1011 DrawRoadDetail(SPR_ONEWAY_BASE + drd - 1 + ((road == ROAD_X) ? 0 : 3), ti, 8, 8, 0); |
|
1012 } |
1013 } |
1013 } |
1014 |
1014 |
1015 if (HasRoadWorks(ti->tile)) { |
1015 if (HasRoadWorks(ti->tile)) { |
1016 /* Road works */ |
1016 /* Road works */ |
1017 DrawGroundSprite((road | tram) & ROAD_X ? SPR_EXCAVATION_X : SPR_EXCAVATION_Y, PAL_NONE); |
1017 DrawGroundSprite((road | tram) & ROAD_X ? SPR_EXCAVATION_X : SPR_EXCAVATION_Y, PAL_NONE); |