From 4e9e115760658099a6dd5a677bdf03145ab93e82 Mon Sep 17 00:00:00 2001 From: Ingo von Borstel Date: Wed, 16 Jan 2019 21:44:03 +0100 Subject: Add: [NewGRF] Airport animation trigger for plane landing (#6334, patch by Supercheese) --- src/aircraft_cmd.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/aircraft_cmd.cpp') diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index b495a1dff..6799f7c64 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -37,6 +37,7 @@ #include "core/backup_type.hpp" #include "zoom_func.h" #include "disaster_vehicle.h" +#include "newgrf_airporttiles.h" #include "framerate_type.h" #include "table/strings.h" @@ -1370,8 +1371,14 @@ static void AircraftEntersTerminal(Aircraft *v) */ static void AircraftLandAirplane(Aircraft *v) { + Station *st = Station::Get(v->targetairport); + + TileIndex vt = TileVirtXY(v->x_pos, v->y_pos); + v->UpdateDeltaXY(); + AirportTileAnimationTrigger(st, vt, AAT_STATION_AIRPLANE_LAND); + if (!PlayVehicleSound(v, VSE_TOUCHDOWN)) { SndPlayVehicleFx(SND_17_SKID_PLANE, v); } -- cgit v1.2.3-54-g00ecf