mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
feat: show taxi flight destination indicator below minimap
Stores the destination node name when activateTaxi() is called and displays a "✈ → <Destination>" indicator in the minimap indicator stack while isOnTaxiFlight() is true. Falls back to "✈ In Flight" when the destination name is unavailable.
This commit is contained in:
parent
f5a834b543
commit
d58c2f4269
3 changed files with 26 additions and 2 deletions
|
|
@ -20759,10 +20759,13 @@ void GameHandler::activateTaxi(uint32_t destNodeId) {
|
|||
|
||||
{
|
||||
auto destIt = taxiNodes_.find(destNodeId);
|
||||
if (destIt != taxiNodes_.end() && !destIt->second.name.empty())
|
||||
if (destIt != taxiNodes_.end() && !destIt->second.name.empty()) {
|
||||
taxiDestName_ = destIt->second.name;
|
||||
addSystemChatMessage("Requesting flight to " + destIt->second.name + "...");
|
||||
else
|
||||
} else {
|
||||
taxiDestName_.clear();
|
||||
addSystemChatMessage("Taxi: requesting flight...");
|
||||
}
|
||||
}
|
||||
|
||||
// BFS to find path from startNode to destNodeId
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue