Misc cleanups

This commit is contained in:
hondacrx
2020-05-05 19:09:57 -04:00
parent 9ec956becf
commit c3adef77a9
38 changed files with 90 additions and 100 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ namespace Game
Values[WorldCfg.EnableSinfoLogin] = GetDefaultValue("Server.LoginInfo", 0);
// Read all rates from the config file
void SetRegenRate(WorldCfg rate, string configKey)
static void SetRegenRate(WorldCfg rate, string configKey)
{
Values[rate] = GetDefaultValue(configKey, 1.0f);
if ((float) Values[rate] < 0.0f)
+2 -2
View File
@@ -1444,7 +1444,7 @@ namespace Game
return BanReturn.Exists;
SQLResult resultAccounts;
PreparedStatement stmt = null;
PreparedStatement stmt;
// Update the database with ban information
switch (mode)
@@ -1522,7 +1522,7 @@ namespace Game
/// Remove a ban from an account or IP address
public bool RemoveBanAccount(BanMode mode, string nameOrIP)
{
PreparedStatement stmt = null;
PreparedStatement stmt;
if (mode == BanMode.IP)
{
stmt = DB.Login.GetPreparedStatement(LoginStatements.DEL_IP_NOT_BANNED);