mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[11465] non-ObjectGuid guids in random places.
Only ChannelMgr code wide use uint64 guids now, and Map object stores.
This commit is contained in:
parent
a925db80fa
commit
ef6a48fe03
44 changed files with 219 additions and 215 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue