build fix
This commit is contained in:
1 parent
052cbbf952
commit
9a8db98c94
1 file changed
+6
-3
@@ -662,12 +662,15 @@ public:
|
|||||||
|
|
||||||
Player* player = handler->GetSession()->GetPlayer();
|
Player* player = handler->GetSession()->GetPlayer();
|
||||||
if (player->IsInFlight())
|
if (player->IsInFlight())
|
||||||
player->FinishTaxiFlight();
|
{
|
||||||
|
player->GetMotionMaster()->MovementExpired();
|
||||||
|
player->CleanupAfterTaxiFlight();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
player->SaveRecallPosition();
|
player->SaveRecallPosition();
|
||||||
|
|
||||||
// try going to entrance
|
// try going to entrance
|
||||||
AreaTrigger const* exit = sObjectMgr->GetGoBackTrigger(mapid);
|
AreaTriggerStruct const* exit = sObjectMgr->GetGoBackTrigger(mapid);
|
||||||
if (!exit)
|
if (!exit)
|
||||||
handler->PSendSysMessage(LANG_COMMAND_INSTANCE_NO_EXIT, mapid, scriptname);
|
handler->PSendSysMessage(LANG_COMMAND_INSTANCE_NO_EXIT, mapid, scriptname);
|
||||||
|
|
||||||
@@ -678,7 +681,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// try going to start
|
// try going to start
|
||||||
AreaTrigger const* entrance = sObjectMgr->GetMapEntranceTrigger(mapid);
|
AreaTriggerStruct const* entrance = sObjectMgr->GetMapEntranceTrigger(mapid);
|
||||||
if (!entrance)
|
if (!entrance)
|
||||||
handler->PSendSysMessage(LANG_COMMAND_INSTANCE_NO_ENTRANCE, mapid, scriptname);
|
handler->PSendSysMessage(LANG_COMMAND_INSTANCE_NO_ENTRANCE, mapid, scriptname);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user