Core/Players: Allow GMs to have their player flags correctly loaded from DB

This commit is contained in:
Shocker
2011-05-25 16:35:35 +03:00
parent 0b557f02b2
commit 0ea721e25a
@@ -16760,12 +16760,6 @@ bool Player::LoadFromDB(uint32 guid, SQLQueryHolder *holder)
m_resetTalentsCost = fields[24].GetUInt32(); m_resetTalentsCost = fields[24].GetUInt32();
m_resetTalentsTime = time_t(fields[25].GetUInt32()); m_resetTalentsTime = time_t(fields[25].GetUInt32());
// reserve some flags
uint32 old_safe_flags = GetUInt32Value(PLAYER_FLAGS) & (PLAYER_FLAGS_HIDE_CLOAK | PLAYER_FLAGS_HIDE_HELM);
if (HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GM))
SetUInt32Value(PLAYER_FLAGS, 0 | old_safe_flags);
m_taxi.LoadTaxiMask(fields[17].GetCString()); // must be before InitTaxiNodesForLevel m_taxi.LoadTaxiMask(fields[17].GetCString()); // must be before InitTaxiNodesForLevel
uint32 extraflags = fields[31].GetUInt16(); uint32 extraflags = fields[31].GetUInt16();