aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level2.cpp
diff options
context:
space:
mode:
authorRat <none@none>2010-03-17 23:16:35 +0100
committerRat <none@none>2010-03-17 23:16:35 +0100
commit4f948651df9eed9771014ad1c36fb748a36f0ee5 (patch)
tree98e5ba13878f36d52ac8f80a9b97f76d7dec1c21 /src/game/Level2.cpp
parentbef85de621610bef37aa5922136a1bbc05aed858 (diff)
*Fix possible exploits with flying paths. by QAston
--HG-- branch : trunk
Diffstat (limited to 'src/game/Level2.cpp')
-rw-r--r--src/game/Level2.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp
index 74a3b5b935e..5e43c29d1bd 100644
--- a/src/game/Level2.cpp
+++ b/src/game/Level2.cpp
@@ -172,7 +172,7 @@ bool ChatHandler::HandleGoTicketCommand(const char * args)
if(_player->isInFlight())
{
_player->GetMotionMaster()->MovementExpired();
- _player->m_taxi.ClearTaxiDestinations();
+ _player->CleanupAfterTaxiFlight();
}
else
_player->SaveRecallPosition();
@@ -216,7 +216,7 @@ bool ChatHandler::HandleGoTriggerCommand(const char* args)
if(_player->isInFlight())
{
_player->GetMotionMaster()->MovementExpired();
- _player->m_taxi.ClearTaxiDestinations();
+ _player->CleanupAfterTaxiFlight();
}
// save only in non-flight case
else
@@ -261,7 +261,7 @@ bool ChatHandler::HandleGoGraveyardCommand(const char* args)
if(_player->isInFlight())
{
_player->GetMotionMaster()->MovementExpired();
- _player->m_taxi.ClearTaxiDestinations();
+ _player->CleanupAfterTaxiFlight();
}
// save only in non-flight case
else
@@ -364,7 +364,7 @@ bool ChatHandler::HandleGoCreatureCommand(const char* args)
if(_player->isInFlight())
{
_player->GetMotionMaster()->MovementExpired();
- _player->m_taxi.ClearTaxiDestinations();
+ _player->CleanupAfterTaxiFlight();
}
// save only in non-flight case
else
@@ -421,7 +421,7 @@ bool ChatHandler::HandleGoObjectCommand(const char* args)
if(_player->isInFlight())
{
_player->GetMotionMaster()->MovementExpired();
- _player->m_taxi.ClearTaxiDestinations();
+ _player->CleanupAfterTaxiFlight();
}
// save only in non-flight case
else