Changeset - r22482:804e13055d07
[Not reviewed]
master
0 3 0
frosch - 7 years ago 2016-12-10 14:33:58
frosch@openttd.org
(svn r27689) -Fix: MSVC warnings.
3 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/aircraft_gui.cpp
Show inline comments
 
@@ -98,7 +98,7 @@ void DrawAircraftImage(const Vehicle *v,
 
	int heli_offs = 0;
 

	
 
	PaletteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v);
 
	seq.Draw(x, y + y_offs, pal, v->vehstatus & VS_CRASHED);
 
	seq.Draw(x, y + y_offs, pal, (v->vehstatus & VS_CRASHED) != 0);
 
	if (helicopter) {
 
		const Aircraft *a = Aircraft::From(v);
 
		VehicleSpriteSeq rotor_seq;
src/roadveh_gui.cpp
Show inline comments
 
@@ -151,7 +151,7 @@ void DrawRoadVehImage(const Vehicle *v, 
 
			PaletteID pal = (u->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(u);
 
			VehicleSpriteSeq seq;
 
			u->GetImage(dir, image_type, &seq);
 
			seq.Draw(px + (rtl ? -offset.x : offset.x), ScaleGUITrad(6) + offset.y, pal, u->vehstatus & VS_CRASHED);
 
			seq.Draw(px + (rtl ? -offset.x : offset.x), ScaleGUITrad(6) + offset.y, pal, (u->vehstatus & VS_CRASHED) != 0);
 
		}
 

	
 
		px += rtl ? -width : width;
src/train_gui.cpp
Show inline comments
 
@@ -126,7 +126,7 @@ void DrawTrainImage(const Train *v, int 
 
			PaletteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v);
 
			VehicleSpriteSeq seq;
 
			v->GetImage(dir, image_type, &seq);
 
			seq.Draw(px + (rtl ? -offset.x : offset.x), height / 2 + offset.y, pal, v->vehstatus & VS_CRASHED);
 
			seq.Draw(px + (rtl ? -offset.x : offset.x), height / 2 + offset.y, pal, (v->vehstatus & VS_CRASHED) != 0);
 
		}
 

	
 
		if (!v->IsArticulatedPart()) sel_articulated = false;
 
@@ -387,7 +387,7 @@ void DrawTrainDetails(const Train *v, in
 
					PaletteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v);
 
					VehicleSpriteSeq seq;
 
					u->GetImage(dir, EIT_IN_DETAILS, &seq);
 
					seq.Draw(px + (rtl ? -offset.x : offset.x), y - line_height * vscroll_pos + sprite_y_offset + pitch, pal, v->vehstatus & VS_CRASHED);
 
					seq.Draw(px + (rtl ? -offset.x : offset.x), y - line_height * vscroll_pos + sprite_y_offset + pitch, pal, (v->vehstatus & VS_CRASHED) != 0);
 
				}
 
				px += rtl ? -width : width;
 
				dx += width;
0 comments (0 inline, 0 general)