mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[6805] Small fixes in send/received packet and simple code cleanup also.
This commit is contained in:
parent
d5b713e9c0
commit
ac222e92b1
4 changed files with 12 additions and 6 deletions
|
|
@ -49,7 +49,6 @@
|
|||
#include "ItemEnchantmentMgr.h"
|
||||
#include "InstanceSaveMgr.h"
|
||||
#include "InstanceData.h"
|
||||
#include "AccountMgr.h"
|
||||
|
||||
//reload commands
|
||||
bool ChatHandler::HandleReloadCommand(const char* arg)
|
||||
|
|
|
|||
|
|
@ -1261,6 +1261,8 @@ void WorldSession::HandleWhoisOpcode(WorldPacket& recv_data)
|
|||
return;
|
||||
}
|
||||
|
||||
normalizePlayerName (charname);
|
||||
|
||||
Player *plr = objmgr.GetPlayer(charname.c_str());
|
||||
|
||||
if(!plr)
|
||||
|
|
|
|||
|
|
@ -384,10 +384,15 @@ void Unit::SendMonsterMoveByPath(Path const& path, uint32 start, uint32 end, uin
|
|||
|
||||
WorldPacket data( SMSG_MONSTER_MOVE, (GetPackGUID().size()+4+4+4+4+1+4+4+4+pathSize*4*3) );
|
||||
data.append(GetPackGUID());
|
||||
data << GetPositionX( )
|
||||
<< GetPositionY( )
|
||||
<< GetPositionZ( );
|
||||
data << GetOrientation( );
|
||||
data << GetPositionX();
|
||||
data << GetPositionY();
|
||||
data << GetPositionZ();
|
||||
|
||||
// unknown field - unrelated to orientation
|
||||
// seems to increment about 1000 for every 1.7 seconds
|
||||
// for now, we'll just use mstime
|
||||
data << getMSTime();
|
||||
|
||||
data << uint8( 0 );
|
||||
data << uint32( MovementFlags );
|
||||
data << uint32( traveltime );
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "6804"
|
||||
#define REVISION_NR "6805"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue