mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Replace hardcoded client(100) and server side (255) level limtation values by defines.
(cherry picked from commit 389a1784e288f11587067d3a6d4b70cce9214cb9) Conflicts: src/game/Player.cpp src/game/World.cpp src/shared/Database/DBCStructure.h
This commit is contained in:
parent
5113af643e
commit
35f54d365d
7 changed files with 37 additions and 27 deletions
|
|
@ -3805,8 +3805,8 @@ bool ChatHandler::HandleLevelUpCommand(const char* args)
|
|||
int32 newlevel = oldlevel + addlevel;
|
||||
if(newlevel < 1)
|
||||
newlevel = 1;
|
||||
if(newlevel > 255) // hardcoded maximum level
|
||||
newlevel = 255;
|
||||
if(newlevel > STRONG_MAX_LEVEL) // hardcoded maximum level
|
||||
newlevel = STRONG_MAX_LEVEL;
|
||||
|
||||
if(chr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue