summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-03-18 21:03:18 +0300
committerAndrei Karas <akaras@inbox.ru>2019-03-18 21:03:18 +0300
commit55bdc5bf6fe4c925cad9edb46dc68cd9fa1c613c (patch)
tree98663aeb9a41a6cf823b46d5a1cab720442e39a9 /src/net/tmwa
parent724b1d9950c5784f8335ce028981c8b1fcf72d54 (diff)
downloadmanaverse-55bdc5bf6fe4c925cad9edb46dc68cd9fa1c613c.tar.gz
manaverse-55bdc5bf6fe4c925cad9edb46dc68cd9fa1c613c.tar.bz2
manaverse-55bdc5bf6fe4c925cad9edb46dc68cd9fa1c613c.tar.xz
manaverse-55bdc5bf6fe4c925cad9edb46dc68cd9fa1c613c.zip
Fix badges state in legacy server online list packet
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/playerrecv.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/net/tmwa/playerrecv.cpp b/src/net/tmwa/playerrecv.cpp
index 77c2d7e03..7883f8dd1 100644
--- a/src/net/tmwa/playerrecv.cpp
+++ b/src/net/tmwa/playerrecv.cpp
@@ -218,25 +218,11 @@ void PlayerRecv::processOnlineList(Net::MessageIn &msg)
const unsigned char level = msg.readUInt8("level");
const unsigned char group = msg.readUInt8("group");
GenderT gender = Being::intToGender(msg.readUInt8("gender"));
- unsigned char status = 0;
- switch (gender)
- {
- case Gender::MALE:
- status |= BeingFlag::GENDER_MALE;
- break;
- case Gender::HIDDEN:
- status |= BeingFlag::GENDER_HIDDEN;
- break;
- case Gender::FEMALE:
- case Gender::UNSPECIFIED:
- default:
- break;
- }
if (!config.getBoolValue("showgender"))
gender = Gender::UNSPECIFIED;
arr.push_back(new OnlinePlayer(name,
- status, level, gender, 0, group));
+ CAST_U8(255), level, gender, 0, group));
if (actorManager)
actorManager->updateNameId(name, beingId);
}