*Fix possible exploits with flying paths. by QAston

--HG--
branch : trunk
This commit is contained in:
Rat
2010-03-17 23:16:35 +01:00
parent bef85de621
commit 4f948651df
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -399,7 +399,7 @@ void WorldSession::HandleBattleFieldPortOpcode( WorldPacket &recv_data )
if (_player->isInFlight()) if (_player->isInFlight())
{ {
_player->GetMotionMaster()->MovementExpired(); _player->GetMotionMaster()->MovementExpired();
_player->m_taxi.ClearTaxiDestinations(); _player->CleanupAfterTaxiFlight();
} }
sBattleGroundMgr.BuildBattleGroundStatusPacket(&data, bg, queueSlot, STATUS_IN_PROGRESS, 0, bg->GetStartTime(), bg->GetArenaType()); sBattleGroundMgr.BuildBattleGroundStatusPacket(&data, bg, queueSlot, STATUS_IN_PROGRESS, 0, bg->GetStartTime(), bg->GetArenaType());
+5 -5
View File
@@ -172,7 +172,7 @@ bool ChatHandler::HandleGoTicketCommand(const char * args)
if(_player->isInFlight()) if(_player->isInFlight())
{ {
_player->GetMotionMaster()->MovementExpired(); _player->GetMotionMaster()->MovementExpired();
_player->m_taxi.ClearTaxiDestinations(); _player->CleanupAfterTaxiFlight();
} }
else else
_player->SaveRecallPosition(); _player->SaveRecallPosition();
@@ -216,7 +216,7 @@ bool ChatHandler::HandleGoTriggerCommand(const char* args)
if(_player->isInFlight()) if(_player->isInFlight())
{ {
_player->GetMotionMaster()->MovementExpired(); _player->GetMotionMaster()->MovementExpired();
_player->m_taxi.ClearTaxiDestinations(); _player->CleanupAfterTaxiFlight();
} }
// save only in non-flight case // save only in non-flight case
else else
@@ -261,7 +261,7 @@ bool ChatHandler::HandleGoGraveyardCommand(const char* args)
if(_player->isInFlight()) if(_player->isInFlight())
{ {
_player->GetMotionMaster()->MovementExpired(); _player->GetMotionMaster()->MovementExpired();
_player->m_taxi.ClearTaxiDestinations(); _player->CleanupAfterTaxiFlight();
} }
// save only in non-flight case // save only in non-flight case
else else
@@ -364,7 +364,7 @@ bool ChatHandler::HandleGoCreatureCommand(const char* args)
if(_player->isInFlight()) if(_player->isInFlight())
{ {
_player->GetMotionMaster()->MovementExpired(); _player->GetMotionMaster()->MovementExpired();
_player->m_taxi.ClearTaxiDestinations(); _player->CleanupAfterTaxiFlight();
} }
// save only in non-flight case // save only in non-flight case
else else
@@ -421,7 +421,7 @@ bool ChatHandler::HandleGoObjectCommand(const char* args)
if(_player->isInFlight()) if(_player->isInFlight())
{ {
_player->GetMotionMaster()->MovementExpired(); _player->GetMotionMaster()->MovementExpired();
_player->m_taxi.ClearTaxiDestinations(); _player->CleanupAfterTaxiFlight();
} }
// save only in non-flight case // save only in non-flight case
else else
+1 -1
View File
@@ -135,7 +135,7 @@ void WorldSession::HandleMoveWorldportAckOpcode()
// battleground state prepare, stop flight // battleground state prepare, stop flight
GetPlayer()->GetMotionMaster()->MovementExpired(); GetPlayer()->GetMotionMaster()->MovementExpired();
GetPlayer()->m_taxi.ClearTaxiDestinations(); GetPlayer()->CleanupAfterTaxiFlight();
} }
// resurrect character at enter into instance where his corpse exist after add to map // resurrect character at enter into instance where his corpse exist after add to map