mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
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:
parent
9fe2ef381c
commit
59e29e2988
1 changed files with 12 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue