From 23d8fb13a79b0378db2ef6860d9b0b68cfacb9d6 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 22 Dec 2007 17:30:49 +0000 Subject: 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 --- src/map/clif.c | 9 +++++---- 1 file 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; } /*========================================== -- cgit v1.2.3-70-g09d2