[10318] Gender field in SMSG_WHO packet.

Also fix warning in class declaration forward

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
MaS0n 2010-08-04 15:28:48 +04:00 committed by VladimirMangos
parent ad7b628ebf
commit 29ab336b27
3 changed files with 8 additions and 7 deletions

View file

@ -21,7 +21,7 @@
#include "SharedDefines.h"
class AreaTrigger;
struct AreaTrigger;
class ChatHandler;
class WorldSession;
class Creature;

View file

@ -181,6 +181,7 @@ void WorldSession::HandleWhoOpcode( WorldPacket & recv_data )
continue;
uint32 pzoneid = itr->second->GetZoneId();
uint8 gender = itr->second->getGender();
bool z_show = true;
for(uint32 i = 0; i < zones_count; ++i)
@ -238,11 +239,11 @@ void WorldSession::HandleWhoOpcode( WorldPacket & recv_data )
data << pname; // player name
data << gname; // guild name
data << uint32( lvl ); // player level
data << uint32( class_ ); // player class
data << uint32( race ); // player race
data << uint8(0); // new 2.4.0
data << uint32( pzoneid ); // player zone id
data << uint32(lvl); // player level
data << uint32(class_); // player class
data << uint32(race); // player race
data << uint8(gender); // player gender
data << uint32(pzoneid); // player zone id
// 50 is maximum player count sent to client
if ((++clientcount) == 50)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10317"
#define REVISION_NR "10318"
#endif // __REVISION_NR_H__