mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9389] Cleanup config data. Use proper names and expected types.
This commit is contained in:
parent
58d188f21a
commit
ebfb0f9835
63 changed files with 1591 additions and 967 deletions
|
|
@ -2354,7 +2354,7 @@ bool ChatHandler::HandleListItemCommand(const char* args)
|
|||
item_guid,owner_name.c_str(),owner_guid,owner_acc,item_pos);
|
||||
} while (result->NextRow());
|
||||
|
||||
int64 res_count = result->GetRowCount();
|
||||
int res_count = (int)result->GetRowCount();
|
||||
|
||||
delete result;
|
||||
|
||||
|
|
@ -2404,7 +2404,7 @@ bool ChatHandler::HandleListItemCommand(const char* args)
|
|||
item_guid,item_s_name.c_str(),item_s,item_s_acc,item_r_name.c_str(),item_r,item_r_acc,item_pos);
|
||||
} while (result->NextRow());
|
||||
|
||||
int64 res_count = result->GetRowCount();
|
||||
int res_count = (int)result->GetRowCount();
|
||||
|
||||
delete result;
|
||||
|
||||
|
|
@ -2481,7 +2481,7 @@ bool ChatHandler::HandleListItemCommand(const char* args)
|
|||
PSendSysMessage(LANG_ITEMLIST_GUILD,item_guid,guild_name.c_str(),guild_guid,item_pos);
|
||||
} while (result->NextRow());
|
||||
|
||||
int64 res_count = result->GetRowCount();
|
||||
int res_count = (int)result->GetRowCount();
|
||||
|
||||
delete result;
|
||||
|
||||
|
|
@ -4175,7 +4175,7 @@ bool ChatHandler::HandleChangeWeather(const char* args)
|
|||
return false;
|
||||
|
||||
//Weather is OFF
|
||||
if (!sWorld.getConfig(CONFIG_WEATHER))
|
||||
if (!sWorld.getConfig(CONFIG_BOOL_WEATHER))
|
||||
{
|
||||
SendSysMessage(LANG_WEATHER_DISABLED);
|
||||
SetSentErrorMessage(true);
|
||||
|
|
@ -4421,8 +4421,8 @@ bool ChatHandler::HandleResetLevelCommand(const char * args)
|
|||
|
||||
// set starting level
|
||||
uint32 start_level = target->getClass() != CLASS_DEATH_KNIGHT
|
||||
? sWorld.getConfig(CONFIG_START_PLAYER_LEVEL)
|
||||
: sWorld.getConfig(CONFIG_START_HEROIC_PLAYER_LEVEL);
|
||||
? sWorld.getConfig(CONFIG_UINT32_START_PLAYER_LEVEL)
|
||||
: sWorld.getConfig(CONFIG_UINT32_START_HEROIC_PLAYER_LEVEL);
|
||||
|
||||
target->_ApplyAllLevelScaleItemMods(false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue