Skip to content

Commit

Permalink
Fix realm flags and add support for full flag
Browse files Browse the repository at this point in the history
  • Loading branch information
celguar committed Nov 3, 2024
1 parent 1c5c677 commit 27d7242
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/realmd/RealmList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions src/shared/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down

0 comments on commit 27d7242

Please sign in to comment.