aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSpp <none@none>2010-10-19 12:39:03 +0200
committerSpp <none@none>2010-10-19 12:39:03 +0200
commitc2413f269803211387270d2cdf0697f10d4e9fbc (patch)
tree5031483ec5599ea9efd916f93e48bd853e55fdec /src
parent64c1b6b4659276cf849e2ef990be4ad4b095fa2e (diff)
Core/Dungeon Finder: Fix players getting stuck after being teleported to dungeon while in a taxi flight
--HG-- branch : trunk
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/DungeonFinding/LFGMgr.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp
index 44569b2341c..957c18c8865 100755
--- a/src/server/game/DungeonFinding/LFGMgr.cpp
+++ b/src/server/game/DungeonFinding/LFGMgr.cpp
@@ -1885,6 +1885,12 @@ void LFGMgr::TeleportPlayer(Player* plr, bool out, bool fromOpcode /*= false*/)
if (!plr->GetMap()->IsDungeon() && !plr->GetMap()->IsRaid())
plr->SetBattlegroundEntryPoint();
+ if (plr->isInFlight())
+ {
+ plr->GetMotionMaster()->MovementExpired();
+ plr->CleanupAfterTaxiFlight();
+ }
+
if (plr->TeleportTo(mapid, x, y, z, orientation))
plr->RemoveAurasByType(SPELL_AURA_MOUNTED);
else