Changeset - r12379:f463555dd9bd
[Not reviewed]
master
0 1 0
frosch - 15 years ago 2009-07-13 20:27:54
frosch@openttd.org
(svn r16819) -Fix (r4868): Use the palette of the vehicle being drawn instead of the one of the front vehicle.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/train_gui.cpp
Show inline comments
 
@@ -240,7 +240,7 @@ void DrawTrainDetails(const Train *v, in
 

	
 
				u = v;
 
				do {
 
					SpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v);
 
					SpriteID pal = (u->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(u);
 
					DrawSprite(u->GetImage(DIR_W), pal, x + WagonLengthToPixels(4 + dx), y + 6 + (is_custom_sprite(RailVehInfo(u->engine_type)->image_index) ? _traininfo_vehicle_pitch : 0));
 
					dx += Train::From(u)->tcache.cached_veh_length;
 
					u = u->Next();
0 comments (0 inline, 0 general)