From 596ed324a10059111448f499f6763075c46e7573 Mon Sep 17 00:00:00 2001 From: maximius Date: Mon, 31 Aug 2009 01:15:09 -0700 Subject: [PATCH] *Should fix 2 of Visagalis' crashes, and Grimwing flight master in Ebon Hold. --HG-- branch : trunk --- src/game/TaxiHandler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/TaxiHandler.cpp b/src/game/TaxiHandler.cpp index 8aa512bd71..45c3cbd871 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 )