[11465] non-ObjectGuid guids in random places.

Only ChannelMgr code wide use uint64 guids now, and Map object stores.
This commit is contained in:
VladimirMangos 2011-05-10 21:24:43 +04:00
parent a925db80fa
commit ef6a48fe03
44 changed files with 219 additions and 215 deletions

View file

@ -132,18 +132,18 @@ bool WorldSession::SendLearnNewTaxiNode( Creature* unit )
// find current node
uint32 curloc = sObjectMgr.GetNearestTaxiNode(unit->GetPositionX(),unit->GetPositionY(),unit->GetPositionZ(),unit->GetMapId(),GetPlayer( )->GetTeam());
if ( curloc == 0 )
if (curloc == 0)
return true; // `true` send to avoid WorldSession::SendTaxiMenu call with one more curlock seartch with same false result.
if( GetPlayer()->m_taxi.SetTaximaskNode(curloc) )
if (GetPlayer()->m_taxi.SetTaximaskNode(curloc))
{
WorldPacket msg(SMSG_NEW_TAXI_PATH, 0);
SendPacket( &msg );
SendPacket(&msg);
WorldPacket update( SMSG_TAXINODE_STATUS, 9 );
update << uint64( unit->GetGUID() );
update << uint8( 1 );
SendPacket( &update );
WorldPacket update(SMSG_TAXINODE_STATUS, 9);
update << ObjectGuid(unit->GetObjectGuid());
update << uint8(1);
SendPacket(&update);
return true;
}