From 59e29e298826529bc15febaad3a328bb74d62c0a Mon Sep 17 00:00:00 2001 From: Kelsi Date: Fri, 13 Mar 2026 08:05:16 -0700 Subject: [PATCH] feat: show taxi destination name in flight messages Replace generic "Taxi: requesting flight..." and "Flight started." with "Requesting flight to [node name]..." and "Flight to [node name] started." using the already-loaded taxiNodes_ map. Falls back to generic text when the node name is unavailable. --- src/game/game_handler.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 6779bff0..161f0b95 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -20674,7 +20674,13 @@ void GameHandler::activateTaxi(uint32_t destNodeId) { dismount(); } - addSystemChatMessage("Taxi: requesting flight..."); + { + auto destIt = taxiNodes_.find(destNodeId); + if (destIt != taxiNodes_.end() && !destIt->second.name.empty()) + addSystemChatMessage("Requesting flight to " + destIt->second.name + "..."); + else + addSystemChatMessage("Taxi: requesting flight..."); + } // BFS to find path from startNode to destNodeId std::unordered_map> adj; @@ -20792,10 +20798,13 @@ void GameHandler::activateTaxi(uint32_t destNodeId) { taxiActivateTimer_ = 0.0f; } - addSystemChatMessage("Flight started."); - // Save recovery target in case of disconnect during taxi. auto destIt = taxiNodes_.find(destNodeId); + if (destIt != taxiNodes_.end() && !destIt->second.name.empty()) + addSystemChatMessage("Flight to " + destIt->second.name + " started."); + else + addSystemChatMessage("Flight started."); + if (destIt != taxiNodes_.end()) { taxiRecoverMapId_ = destIt->second.mapId; taxiRecoverPos_ = core::coords::serverToCanonical(