Selaa lähdekoodia

Ensure exp rate changes from a reloadbattleconf cause a call to mob_reload().

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14370 54d463be-8e91-2dee-dedb-b68131a5f0ec
Paradox924X 14 vuotta sitten
vanhempi
commit
f8270ee5f1
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      src/map/atcommand.c

+ 3 - 1
src/map/atcommand.c

@@ -4163,8 +4163,10 @@ int atcommand_reloadbattleconf(const int fd, struct map_session_data* sd, const
 	||  prev_config.item_drop_use_max      != battle_config.item_drop_use_max
 	||  prev_config.item_drop_treasure_min != battle_config.item_drop_treasure_min
 	||  prev_config.item_drop_treasure_max != battle_config.item_drop_treasure_max
+	||  prev_config.base_exp_rate          != battle_config.base_exp_rate
+	||  prev_config.job_exp_rate           != battle_config.job_exp_rate
 	)
-  	{	//Drop rates changed.
+  	{	// Exp or Drop rates changed.
 		mob_reload(); //Needed as well so rate changes take effect.
 #ifndef TXT_ONLY
 		chrif_ragsrvinfo(battle_config.base_exp_rate, battle_config.job_exp_rate, battle_config.item_rate_common);