aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximius <none@none>2009-08-31 01:15:09 -0700
committermaximius <none@none>2009-08-31 01:15:09 -0700
commit596ed324a10059111448f499f6763075c46e7573 (patch)
tree24c16783481bcb8a9cb6ae356c63e38e5758076c
parentfe3e40c284d02ad336ccd9ffecdf051866e4bd51 (diff)
*Should fix 2 of Visagalis' crashes, and Grimwing flight master in Ebon Hold.
--HG-- branch : trunk
-rw-r--r--src/game/TaxiHandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/TaxiHandler.cpp b/src/game/TaxiHandler.cpp
index 8aa512bd719..45c3cbd871b 100644
--- a/src/game/TaxiHandler.cpp
+++ b/src/game/TaxiHandler.cpp
@@ -101,6 +101,9 @@ void WorldSession::SendTaxiMenu( Creature* unit )
if ( curloc == 0 )
return;
+ bool lastTaxiCheaterState = GetPlayer()->isTaxiCheater();
+ if(unit->GetEntry() == 29480) GetPlayer()->SetTaxiCheater(true); // Grimwing in Ebon Hold, special case. NOTE: Not perfect, Zul'Aman should not be included according to WoWhead, and I think taxicheat includes it.
+
sLog.outDebug( "WORLD: CMSG_TAXINODE_STATUS_QUERY %u ",curloc);
WorldPacket data( SMSG_SHOWTAXINODES, (4+8+4+8*4) );
@@ -111,6 +114,8 @@ void WorldSession::SendTaxiMenu( Creature* unit )
SendPacket( &data );
sLog.outDebug( "WORLD: Sent SMSG_SHOWTAXINODES" );
+
+ GetPlayer()->SetTaxiCheater(lastTaxiCheaterState);
}
void WorldSession::SendDoFlight( uint32 mountDisplayId, uint32 path, uint32 pathNode )