mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Movement/TaxiPath: Properly clean up list of taxi destinations upon arrival at final node. Closes #22089.
(cherry picked from commit a3697052c3)
This commit is contained in:
@@ -165,6 +165,8 @@ std::string PlayerTaxi::SaveTaxiDestinationsToString()
|
||||
if (m_TaxiDestinations.empty())
|
||||
return "";
|
||||
|
||||
ASSERT(m_TaxiDestinations.size() >= 2);
|
||||
|
||||
std::ostringstream ss;
|
||||
ss << m_flightMasterFactionId << ' ';
|
||||
|
||||
|
||||
@@ -143,6 +143,7 @@ void FlightPathMovementGenerator::DoFinalize(Player* owner, bool active, bool/*
|
||||
if (!active)
|
||||
return;
|
||||
|
||||
owner->m_taxi.ClearTaxiDestinations();
|
||||
owner->Dismount();
|
||||
owner->RemoveUnitFlag(UnitFlags(UNIT_FLAG_REMOVE_CLIENT_CONTROL | UNIT_FLAG_TAXI_FLIGHT));
|
||||
|
||||
@@ -267,7 +268,7 @@ void FlightPathMovementGenerator::PreloadEndGrid()
|
||||
// Load the grid
|
||||
if (endMap)
|
||||
{
|
||||
TC_LOG_DEBUG("movement.flightpath", "FlightPathMovementGenerator::PreloadEndGrid: preloading rid (%f, %f) for map %u at node index %u/%u", _endGridX, _endGridY, _endMapId, _preloadTargetNode, uint32(_path.size() - 1));
|
||||
TC_LOG_DEBUG("movement.flightpath", "FlightPathMovementGenerator::PreloadEndGrid: preloading grid (%f, %f) for map %u at node index %u/%u", _endGridX, _endGridY, _endMapId, _preloadTargetNode, uint32(_path.size() - 1));
|
||||
endMap->LoadGrid(_endGridX, _endGridY);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user