Changeset - r5148:14004fff8587
[Not reviewed]
master
0 1 0
tron - 18 years ago 2006-11-22 18:16:50
tron@openttd.org
(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)
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
road_cmd.c
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)