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.
This commit is contained in:
Kelsi 2026-03-13 08:05:16 -07:00
parent 9fe2ef381c
commit 59e29e2988

View file

@ -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<uint32_t, std::vector<uint32_t>> 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(