Skip to content

Commit

Permalink
Core/Config: Fix 3 more missing config warnings
Browse files Browse the repository at this point in the history
Closes #16861

Thanks tkrokli

(cherry picked from commit 0afcefe)
  • Loading branch information
DDuarte committed Mar 31, 2016
1 parent 9aadd97 commit c9e3f2a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/common/Configuration/Config.cpp
Expand Up @@ -121,7 +121,7 @@ bool ConfigMgr::GetBoolDefault(std::string const& name, bool def) const
{
std::string val = GetValueDefault(name, std::string(def ? "1" : "0"));
val.erase(std::remove(val.begin(), val.end(), '"'), val.end());
return (val == "true" || val == "TRUE" || val == "yes" || val == "YES" || val == "1");
return (val == "1" || val == "true" || val == "TRUE" || val == "yes" || val == "YES");
}

int ConfigMgr::GetIntDefault(std::string const& name, int def) const
Expand Down
13 changes: 10 additions & 3 deletions src/server/worldserver/worldserver.conf.dist
Expand Up @@ -348,6 +348,13 @@ PlayerSave.Stats.MinLevel = 0

PlayerSave.Stats.SaveOnlyOnLogout = 1

#
# DisconnectToleranceInterval
# Description: Tolerance (in seconds) for disconnected players before reentering the queue.
# Default: 0 (disabled)

DisconnectToleranceInterval = 0

#
# mmap.enablePathFinding
# Description: Enable/Disable pathfinding using mmaps - recommended.
Expand Down Expand Up @@ -2297,16 +2304,16 @@ Battleground.InvitationType = 0
# Default: 300000 - (Enabled, 5 minutes)
# 0 - (Disabled, Not recommended)

BattleGround.PrematureFinishTimer = 300000
Battleground.PrematureFinishTimer = 300000

#
# BattleGround.PremadeGroupWaitForMatch
# Battleground.PremadeGroupWaitForMatch
# Description: Time (in milliseconds) a pre-made group has to wait for matching group of the
# other faction.
# Default: 1800000 - (Enabled, 30 minutes)
# 0 - (Disabled, Not recommended)

BattleGround.PremadeGroupWaitForMatch = 1800000
Battleground.PremadeGroupWaitForMatch = 1800000

#
# Battleground.GiveXPForKills
Expand Down

0 comments on commit c9e3f2a

Please sign in to comment.