From 1d32eaf57b75c1c83a0f3f32229c53715be2b5ac Mon Sep 17 00:00:00 2001 From: celguar Date: Sun, 3 Nov 2024 09:13:07 +0300 Subject: [PATCH] Fix realm flags and add support for full flag --- src/realmd/RealmList.cpp | 4 ++-- src/shared/Common.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/realmd/RealmList.cpp b/src/realmd/RealmList.cpp index ba88b2543e..10843467e0 100644 --- a/src/realmd/RealmList.cpp +++ b/src/realmd/RealmList.cpp @@ -174,10 +174,10 @@ void RealmList::UpdateRealms(bool init) uint8 realmflags = fields[5].GetUInt8(); uint8 allowedSecurityLevel = fields[7].GetUInt8(); - if (realmflags & ~(REALM_FLAG_OFFLINE | REALM_FLAG_NEW_PLAYERS | REALM_FLAG_RECOMMENDED | REALM_FLAG_SPECIFYBUILD)) + if (realmflags & ~(REALM_FLAG_OFFLINE | REALM_FLAG_NEW_PLAYERS | REALM_FLAG_RECOMMENDED | REALM_FLAG_SPECIFYBUILD | REALM_FLAG_FULL)) { sLog.outError("Realm (id %u, name '%s') can only be flagged as OFFLINE (mask 0x02), NEWPLAYERS (mask 0x20), RECOMMENDED (mask 0x40), or SPECIFICBUILD (mask 0x04) in DB", Id, name.c_str()); - realmflags &= (REALM_FLAG_OFFLINE | REALM_FLAG_NEW_PLAYERS | REALM_FLAG_RECOMMENDED | REALM_FLAG_SPECIFYBUILD); + realmflags &= (REALM_FLAG_OFFLINE | REALM_FLAG_NEW_PLAYERS | REALM_FLAG_RECOMMENDED | REALM_FLAG_SPECIFYBUILD | REALM_FLAG_FULL); } UpdateRealm( diff --git a/src/shared/Common.h b/src/shared/Common.h index eb9e44a9bc..641b3829bc 100644 --- a/src/shared/Common.h +++ b/src/shared/Common.h @@ -137,8 +137,8 @@ enum RealmFlags REALM_FLAG_SPECIFYBUILD = 0x04, // client will show realm version in RealmList screen in form "RealmName (major.minor.revision.build)" REALM_FLAG_UNK1 = 0x08, REALM_FLAG_UNK2 = 0x10, - REALM_FLAG_NEW_PLAYERS = 0x20, - REALM_FLAG_RECOMMENDED = 0x40, + REALM_FLAG_RECOMMENDED = 0x20, + REALM_FLAG_NEW_PLAYERS = 0x40, REALM_FLAG_FULL = 0x80 };