Core/Refactor: Part 1
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Game
|
||||
Values[WorldCfg.EnableSinfoLogin] = GetDefaultValue("Server.LoginInfo", 0);
|
||||
|
||||
// Read all rates from the config file
|
||||
Action<WorldCfg, string> setRegenRate = (WorldCfg rate, string configKey) =>
|
||||
Action<WorldCfg, string> setRegenRate = (rate, configKey) =>
|
||||
{
|
||||
Values[rate] = GetDefaultValue(configKey, 1.0f);
|
||||
if ((float)Values[rate] < 0.0f)
|
||||
|
||||
@@ -984,8 +984,6 @@ namespace Game
|
||||
|
||||
class AccountInfoQueryHolderPerRealm : SQLQueryHolder<AccountInfoQueryLoad>
|
||||
{
|
||||
public AccountInfoQueryHolderPerRealm() { }
|
||||
|
||||
public void Initialize(uint accountId, uint battlenetAccountId)
|
||||
{
|
||||
PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.SEL_ACCOUNT_DATA);
|
||||
@@ -1000,8 +998,6 @@ namespace Game
|
||||
|
||||
class AccountInfoQueryHolder : SQLQueryHolder<AccountInfoQueryLoad>
|
||||
{
|
||||
public AccountInfoQueryHolder() { }
|
||||
|
||||
public void Initialize(uint accountId, uint battlenetAccountId)
|
||||
{
|
||||
PreparedStatement stmt = DB.Login.GetPreparedStatement(LoginStatements.SEL_ACCOUNT_TOYS);
|
||||
|
||||
Reference in New Issue
Block a user