From e72744cc77e0a4a8d0f49bd7b7654ef76085ca51 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 26 Aug 2023 11:18:19 +0100 Subject: [PATCH] Debug: Show airport type/layout in debug window --- src/table/newgrf_debug_data.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/table/newgrf_debug_data.h b/src/table/newgrf_debug_data.h index af7a152fb5..41b3a0a06b 100644 --- a/src/table/newgrf_debug_data.h +++ b/src/table/newgrf_debug_data.h @@ -1906,6 +1906,12 @@ class NIHStationStruct : public NIHelper { seprintf(buffer, lastof(buffer), " Time since: load: %u, unload: %u", st->time_since_load, st->time_since_unload); output.print(buffer); + if (st->airport.tile != INVALID_TILE) { + seprintf(buffer, lastof(buffer), " Airport: type: %u (local: %u), layout: %u, rotation: %u", + st->airport.type, st->airport.GetSpec()->grf_prop.local_id, st->airport.layout, st->airport.rotation); + output.print(buffer); + } + for (const CargoSpec *cs : CargoSpec::Iterate()) { const GoodsEntry *ge = &st->goods[cs->Index()];