Kaynağa Gözat

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
ultramage 17 yıl önce
ebeveyn
işleme
e0611bf8b5
1 değiştirilmiş dosya ile 5 ekleme ve 4 silme
  1. 5 4
      src/map/clif.c

+ 5 - 4
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;
 }
 
 /*==========================================