mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-07 14:58:22 +00:00
(svn r7240) -Fix: Always display the excavation of roadworks even when fully zoomed out (they are quite noticable) or "full details" are off (they are part of the game mechanics)
This commit is contained in:
parent
878006e302
commit
b1568046ed
@ -735,15 +735,15 @@ static void DrawRoadBits(TileInfo* ti)
|
||||
|
||||
DrawGroundSprite(image);
|
||||
|
||||
// Return if full detail is disabled, or we are zoomed fully out.
|
||||
if (!(_display_opt & DO_FULL_DETAIL) || _cur_dpi->zoom == 2) return;
|
||||
|
||||
if (HasRoadWorks(ti->tile)) {
|
||||
// Road works
|
||||
DrawGroundSprite(road & ROAD_X ? SPR_EXCAVATION_X : SPR_EXCAVATION_Y);
|
||||
return;
|
||||
}
|
||||
|
||||
// Return if full detail is disabled, or we are zoomed fully out.
|
||||
if (!(_display_opt & DO_FULL_DETAIL) || _cur_dpi->zoom == 2) return;
|
||||
|
||||
// Draw extra details.
|
||||
for (drts = _road_display_table[roadside][road]; drts->image != 0; drts++) {
|
||||
int x = ti->x | drts->subcoord_x;
|
||||
|
Loading…
Reference in New Issue
Block a user