From e0611bf8b5bf51721c002fc65dfd7be41d3854ce Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 22 Dec 2007 17:30:49 +0000 Subject: [PATCH] Fixed server not always sending the correct level values to the client. git-svn-id: https://svn.code.sf.net/p/rathena/svn/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 8a0b2f66a3..cc71e670fc 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; } /*==========================================