Changeset - r13894:84d21214ad4a
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-12-08 20:56:45
rubidium@openttd.org
(svn r18435) -Fix (r18136): articulated road vehicles weren't properly drawn in the vehicle list/details windows
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/roadveh_gui.cpp
Show inline comments
 
@@ -144,13 +144,13 @@ void DrawRoadVehImage(const Vehicle *v, 
 
		int width = u->GetDisplayImageWidth(&offset);
 

	
 
		SpriteID pal = (u->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(u);
 
		DrawSprite(u->GetImage(dir), pal, pos + (rtl ? -offset.x : offset.x), y + 6 + offset.y);
 

	
 
		pos += rtl ? -width : width;
 
		spent_width += max_width;
 
		spent_width += width;
 
	}
 

	
 
	if (v->index == selection) {
 
		DrawFrameRect((rtl ? pos : left) - 1, y - 1, (rtl ? pos : right) - 1, y + 12, COLOUR_WHITE, FR_BORDERONLY);
 
	}
 
}
0 comments (0 inline, 0 general)