diff options
author | Shauren <shauren.trinity@gmail.com> | 2015-09-12 20:15:34 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2015-09-12 20:15:34 +0200 |
commit | 2056961aae208c5da094f3bf8fbca599b5ebac40 (patch) | |
tree | ca12ff466efc3a7b1ced61f3a98acd9a050dce22 /src/server/game/Movement/MotionMaster.cpp | |
parent | 497aa4425bd8a84acb7f5ebcf03692ef96a64c06 (diff) |
Core/Players: Changed multi-segment taxi paths to fly nearby flight masters along the way, not directly through them
* Taxi cost on multi-segment paths is now charged per segment when it is started
Diffstat (limited to 'src/server/game/Movement/MotionMaster.cpp')
-rw-r--r-- | src/server/game/Movement/MotionMaster.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp index b69322f5720..2bcb4aeb3b3 100644 --- a/src/server/game/Movement/MotionMaster.cpp +++ b/src/server/game/Movement/MotionMaster.cpp @@ -563,7 +563,8 @@ void MotionMaster::MoveTaxiFlight(uint32 path, uint32 pathnode) if (path < sTaxiPathNodesByPath.size()) { TC_LOG_DEBUG("misc", "%s taxi to (Path %u node %u)", _owner->GetName().c_str(), path, pathnode); - FlightPathMovementGenerator* mgen = new FlightPathMovementGenerator(sTaxiPathNodesByPath[path], pathnode); + FlightPathMovementGenerator* mgen = new FlightPathMovementGenerator(pathnode); + mgen->LoadPath(_owner->ToPlayer()); Mutate(mgen, MOTION_SLOT_CONTROLLED); } else |