[12068] Fix another engrish line and improve the lines output

This commit is contained in:
bugeyedcreepy 2012-07-22 01:55:06 +02:00 committed by Schmoozerd
parent 759d7f80db
commit 5efb3867f5
2 changed files with 6 additions and 5 deletions

View file

@ -151,18 +151,19 @@ void RealmList::UpdateRealms(bool init)
{
Field* fields = result->Fetch();
uint32 Id = fields[0].GetUInt32();
std::string name = fields[1].GetCppString();
uint8 realmflags = fields[5].GetUInt8();
uint8 allowedSecurityLevel = fields[7].GetUInt8();
uint8 realmflags = fields[5].GetUInt8();
if (realmflags & ~(REALM_FLAG_OFFLINE | REALM_FLAG_NEW_PLAYERS | REALM_FLAG_RECOMMENDED | REALM_FLAG_SPECIFYBUILD))
{
sLog.outError("Realm allowed have only OFFLINE Mask 0x2), or NEWPLAYERS (mask 0x20), or RECOMMENDED (mask 0x40), or SPECIFICBUILD (mask 0x04) flags in DB");
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);
}
UpdateRealm(
fields[0].GetUInt32(), fields[1].GetCppString(), fields[2].GetCppString(), fields[3].GetUInt32(),
Id, name, fields[2].GetCppString(), fields[3].GetUInt32(),
fields[4].GetUInt8(), RealmFlags(realmflags), fields[6].GetUInt8(),
(allowedSecurityLevel <= SEC_ADMINISTRATOR ? AccountTypes(allowedSecurityLevel) : SEC_ADMINISTRATOR),
fields[8].GetFloat(), fields[9].GetCppString());

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12067"
#define REVISION_NR "12068"
#endif // __REVISION_NR_H__