mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[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:
parent
ad7b628ebf
commit
29ab336b27
3 changed files with 8 additions and 7 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
#include "SharedDefines.h"
|
#include "SharedDefines.h"
|
||||||
|
|
||||||
class AreaTrigger;
|
struct AreaTrigger;
|
||||||
class ChatHandler;
|
class ChatHandler;
|
||||||
class WorldSession;
|
class WorldSession;
|
||||||
class Creature;
|
class Creature;
|
||||||
|
|
|
||||||
|
|
@ -181,6 +181,7 @@ void WorldSession::HandleWhoOpcode( WorldPacket & recv_data )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
uint32 pzoneid = itr->second->GetZoneId();
|
uint32 pzoneid = itr->second->GetZoneId();
|
||||||
|
uint8 gender = itr->second->getGender();
|
||||||
|
|
||||||
bool z_show = true;
|
bool z_show = true;
|
||||||
for(uint32 i = 0; i < zones_count; ++i)
|
for(uint32 i = 0; i < zones_count; ++i)
|
||||||
|
|
@ -238,11 +239,11 @@ void WorldSession::HandleWhoOpcode( WorldPacket & recv_data )
|
||||||
|
|
||||||
data << pname; // player name
|
data << pname; // player name
|
||||||
data << gname; // guild name
|
data << gname; // guild name
|
||||||
data << uint32( lvl ); // player level
|
data << uint32(lvl); // player level
|
||||||
data << uint32( class_ ); // player class
|
data << uint32(class_); // player class
|
||||||
data << uint32( race ); // player race
|
data << uint32(race); // player race
|
||||||
data << uint8(0); // new 2.4.0
|
data << uint8(gender); // player gender
|
||||||
data << uint32( pzoneid ); // player zone id
|
data << uint32(pzoneid); // player zone id
|
||||||
|
|
||||||
// 50 is maximum player count sent to client
|
// 50 is maximum player count sent to client
|
||||||
if ((++clientcount) == 50)
|
if ((++clientcount) == 50)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10317"
|
#define REVISION_NR "10318"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue