Loading

Paste #pigvrkqj9

  1. ***************
  2. *** 37,42 ****
  3.   #include "core/backup_type.hpp"
  4.   #include "zoom_func.h"
  5.   #include "disaster_vehicle.h"
  6.  
  7.   #include "table/strings.h"
  8.  
  9. --- 37,43 ----
  10.   #include "core/backup_type.hpp"
  11.   #include "zoom_func.h"
  12.   #include "disaster_vehicle.h"
  13. + #include "newgrf_airporttiles.h"
  14.  
  15.   #include "table/strings.h"
  16.  
  17. ***************
  18. *** 1347,1354 ****
  19.    */
  20.   static void AircraftLandAirplane(Aircraft *v)
  21.   {
  22.     v->UpdateDeltaXY(INVALID_DIR);
  23.  
  24.     if (!PlayVehicleSound(v, VSE_TOUCHDOWN)) {
  25.         SndPlayVehicleFx(SND_17_SKID_PLANE, v);
  26.     }
  27. --- 1348,1361 ----
  28.    */
  29.   static void AircraftLandAirplane(Aircraft *v)
  30.   {
  31. +   Station *st = Station::Get(v->targetairport);
  32. +
  33. +   TileIndex vt = TileVirtXY(v->x_pos, v->y_pos);
  34. +
  35.     v->UpdateDeltaXY(INVALID_DIR);
  36.  
  37. +   AirportTileAnimationTrigger(st, vt, AAT_STATION_AIRPLANE_LAND);
  38. +
  39.     if (!PlayVehicleSound(v, VSE_TOUCHDOWN)) {
  40.         SndPlayVehicleFx(SND_17_SKID_PLANE, v);
  41.     }

Comments