diff options
author | tron <tron@openttd.org> | 2006-11-22 18:16:50 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-11-22 18:16:50 +0000 |
commit | b1568046ed633ff1a1355f34f01d7fddb5716d04 (patch) | |
tree | f10a9289cc76c1044b154f2238a99b42b79aaf55 /road_cmd.c | |
parent | 878006e302090fa2477111fea5973f4e313f362b (diff) | |
download | openttd-b1568046ed633ff1a1355f34f01d7fddb5716d04.tar.xz |
(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)
Diffstat (limited to 'road_cmd.c')
-rw-r--r-- | road_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/road_cmd.c b/road_cmd.c index 5f0276c16..8c4da968e 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -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; |