diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-22 17:30:49 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-22 17:30:49 +0000 |
commit | 23d8fb13a79b0378db2ef6860d9b0b68cfacb9d6 (patch) | |
tree | 35c969023cb5ba67b6e72cb3f389bf583f1461fd /src | |
parent | 8569e54b7a557408ba4182c106c43cd97828aebe (diff) | |
download | hercules-23d8fb13a79b0378db2ef6860d9b0b68cfacb9d6.tar.gz hercules-23d8fb13a79b0378db2ef6860d9b0b68cfacb9d6.tar.bz2 hercules-23d8fb13a79b0378db2ef6860d9b0b68cfacb9d6.tar.xz hercules-23d8fb13a79b0378db2ef6860d9b0b68cfacb9d6.zip |
Fixed server not always sending the correct level values to the client.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11963 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 8a0b2f66a..cc71e670f 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -738,10 +738,11 @@ void clif_get_weapon_view(struct map_session_data* sd, unsigned short *rhand, un //To make the assignation of the level based on limits clearer/easier. [Skotlex] static int clif_setlevel(int lv) { - lv = cap_value(lv, 0, battle_config.max_lv); - if( lv == battle_config.max_lv && lv < battle_config.aura_lv ) - lv = battle_config.max_lv - 1; - return lv; + if( lv < battle_config.max_lv ) + return lv; + if( lv < battle_config.aura_lv ) + return battle_config.max_lv - 1; + return battle_config.max_lv; } /*========================================== |