diff options
| author | Machiavelli <none@none> | 2010-06-23 02:03:50 +0200 |
|---|---|---|
| committer | Machiavelli <none@none> | 2010-06-23 02:03:50 +0200 |
| commit | b917d5029ed6d10547633a587751d8a7dee5b962 (patch) | |
| tree | 564a9d56f620019afff94bbbd42d02009db428c5 /src/server | |
| parent | 968c27f55f02551dcc0385e587b848facae10ed7 (diff) | |
Preload grid on flightpath 2 nodes before final node instead of halfway.
Previous setup could preload grid in a long flight and unload it again in the very same flight.
--HG--
branch : trunk
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp b/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp index beb5186a8b2..4cadfe1cfb6 100644 --- a/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp +++ b/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp @@ -335,7 +335,7 @@ void FlightPathMovementGenerator::InitEndGridInfo() uint32 nodeCount = (*i_path).size(); // Get the number of nodes in the path. m_endMapId = (*i_path)[nodeCount -1].mapid; // Get the map ID from the last node - m_preloadTargetNode = nodeCount / 2; // Split the number of nodes in half to preload the flightmaster half-way through the flight + m_preloadTargetNode = nodeCount - 3; // 2 nodes before the final node, we pre-load the grid m_endGridX = (*i_path)[nodeCount -1].x; // Get the X position from the last node m_endGridY = (*i_path)[nodeCount -1].y; // Get the Y position from the last node } |
