mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Merge remote branch 'origin/master' into 330
This commit is contained in:
commit
d98300b500
12 changed files with 88 additions and 33 deletions
|
|
@ -895,12 +895,18 @@ void World::LoadConfigSettings(bool reload)
|
|||
|
||||
if(reload)
|
||||
{
|
||||
uint32 val = sConfig.GetIntDefault("Expansion",1);
|
||||
uint32 val = sConfig.GetIntDefault("Expansion",MAX_EXPANSION);
|
||||
if(val!=m_configs[CONFIG_EXPANSION])
|
||||
sLog.outError("Expansion option can't be changed at mangosd.conf reload, using current value (%u).",m_configs[CONFIG_EXPANSION]);
|
||||
}
|
||||
else
|
||||
m_configs[CONFIG_EXPANSION] = sConfig.GetIntDefault("Expansion",1);
|
||||
m_configs[CONFIG_EXPANSION] = sConfig.GetIntDefault("Expansion",MAX_EXPANSION);
|
||||
|
||||
if(m_configs[CONFIG_EXPANSION] > MAX_EXPANSION)
|
||||
{
|
||||
sLog.outError("Expansion option can't be greater %u but set to %u, used %u",MAX_EXPANSION,m_configs[CONFIG_EXPANSION],MAX_EXPANSION);
|
||||
m_configs[CONFIG_EXPANSION] = MAX_EXPANSION;
|
||||
}
|
||||
|
||||
m_configs[CONFIG_CHATFLOOD_MESSAGE_COUNT] = sConfig.GetIntDefault("ChatFlood.MessageCount",10);
|
||||
m_configs[CONFIG_CHATFLOOD_MESSAGE_DELAY] = sConfig.GetIntDefault("ChatFlood.MessageDelay",1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue