(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)
authortron
Wed, 22 Nov 2006 18:16:50 +0000
changeset 5148 00b593a6bae5
parent 5147 db717cde801d
child 5149 0c8ecc0a5099
(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)
road_cmd.c
--- a/road_cmd.c	Wed Nov 22 16:08:01 2006 +0000
+++ b/road_cmd.c	Wed Nov 22 18:16:50 2006 +0000
@@ -735,15 +735,15 @@
 
 	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;