aboutsummaryrefslogtreecommitdiff
path: root/src/game/World.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-12 20:30:17 -0500
committermegamage <none@none>2009-08-12 20:30:17 -0500
commitd575793f6d6cbc2e252d3f96f36f0ae21e63705c (patch)
tree90aa43edc47ded4545a42fe499a0c0339533df6e /src/game/World.cpp
parent4f4775a31bd6f6aa8e3896100aeded0f23c7169d (diff)
[8343] Extand level allowed range for item use to upper values if it end at max player level. Author: VladimirMangos
Also add DEFAULT_MAX_LEVEL define for store current used client expection about max player level. For example for current supported this is 80. --HG-- branch : trunk
Diffstat (limited to 'src/game/World.cpp')
-rw-r--r--src/game/World.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/World.cpp b/src/game/World.cpp
index 1f82c4d2c9b..bfd7893c7b6 100644
--- a/src/game/World.cpp
+++ b/src/game/World.cpp
@@ -711,12 +711,12 @@ void World::LoadConfigSettings(bool reload)
if(reload)
{
- uint32 val = sConfig.GetIntDefault("MaxPlayerLevel", 80);
+ uint32 val = sConfig.GetIntDefault("MaxPlayerLevel", DEFAULT_MAX_LEVEL);
if(val!=m_configs[CONFIG_MAX_PLAYER_LEVEL])
sLog.outError("MaxPlayerLevel option can't be changed at config reload, using current value (%u).",m_configs[CONFIG_MAX_PLAYER_LEVEL]);
}
else
- m_configs[CONFIG_MAX_PLAYER_LEVEL] = sConfig.GetIntDefault("MaxPlayerLevel", 80);
+ m_configs[CONFIG_MAX_PLAYER_LEVEL] = sConfig.GetIntDefault("MaxPlayerLevel", DEFAULT_MAX_LEVEL);
if(m_configs[CONFIG_MAX_PLAYER_LEVEL] > MAX_LEVEL)
{