Codechange: remove redundant 'info_view' parameter, it can be derived from 'image_type'.

This commit is contained in:
frosch
2021-10-22 21:46:55 +02:00
committed by frosch
parent bf0210229c
commit bc984d9af5
5 changed files with 8 additions and 7 deletions

View File

@@ -100,7 +100,7 @@ void DrawAircraftImage(const Vehicle *v, int left, int right, int y, VehicleID s
if (helicopter) {
const Aircraft *a = Aircraft::From(v);
VehicleSpriteSeq rotor_seq;
GetCustomRotorSprite(a, true, image_type, &rotor_seq);
GetCustomRotorSprite(a, image_type, &rotor_seq);
if (!rotor_seq.IsValid()) rotor_seq.Set(SPR_ROTOR_STOPPED);
heli_offs = ScaleGUITrad(5);
rotor_seq.Draw(x, y + y_offs - heli_offs, PAL_NONE, false);