mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Replace hardcoded client(100) and server side (255) level limtation values by defines.
This commit is contained in:
parent
09e8ea2ae6
commit
c798318b7b
8 changed files with 36 additions and 27 deletions
|
|
@ -81,7 +81,7 @@ void WorldSession::HandleWhoOpcode( WorldPacket & recv_data )
|
|||
std::string player_name, guild_name;
|
||||
|
||||
recv_data >> level_min; // maximal player level, default 0
|
||||
recv_data >> level_max; // minimal player level, default 100
|
||||
recv_data >> level_max; // minimal player level, default 100 (MAX_LEVEL)
|
||||
recv_data >> player_name; // player name, case sensitive...
|
||||
|
||||
// recheck
|
||||
|
|
@ -146,8 +146,8 @@ void WorldSession::HandleWhoOpcode( WorldPacket & recv_data )
|
|||
|
||||
// client send in case not set max level value 100 but mangos support 255 max level,
|
||||
// update it to show GMs with characters after 100 level
|
||||
if(level_max >= 100)
|
||||
level_max = 255;
|
||||
if(level_max >= MAX_LEVEL)
|
||||
level_max = STRONG_MAX_LEVEL;
|
||||
|
||||
uint32 team = _player->GetTeam();
|
||||
uint32 security = GetSecurity();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue