From 55bdc5bf6fe4c925cad9edb46dc68cd9fa1c613c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Mar 2019 21:03:18 +0300 Subject: Fix badges state in legacy server online list packet --- src/net/tmwa/playerrecv.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3-70-g09d2