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:
VladimirMangos 2008-12-14 23:52:32 +03:00
parent 5113af643e
commit 35f54d365d
7 changed files with 37 additions and 27 deletions

View file

@ -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)
{