aircraft_gui.c
changeset 1055 cc4f60cc9102
parent 1035 812f837ee03f
child 1209 2e00193652b2
equal deleted inserted replaced
1054:4dc4ed66882d 1055:cc4f60cc9102
  1032 
  1032 
  1033 			DrawAircraftImage(v, x + 19, y + 6, INVALID_VEHICLE);
  1033 			DrawAircraftImage(v, x + 19, y + 6, INVALID_VEHICLE);
  1034 			DrawVehicleProfitButton(v, x, y + 13);
  1034 			DrawVehicleProfitButton(v, x, y + 13);
  1035 
  1035 
  1036 			SetDParam(0, v->unitnumber);
  1036 			SetDParam(0, v->unitnumber);
  1037 			if (IsAircraftHangarTile(v->tile))
  1037 			if (IsAircraftHangarTile(v->tile) && (v->vehstatus & VS_HIDDEN))
  1038 				str = STR_021F;
  1038 				str = STR_021F;
  1039 			else
  1039 			else
  1040 				str = v->age > v->max_age - 366 ? STR_00E3 : STR_00E2;
  1040 				str = v->age > v->max_age - 366 ? STR_00E3 : STR_00E2;
  1041 			DrawString(x, y + 2, str, 0);
  1041 			DrawString(x, y + 2, str, 0);
  1042 
  1042