From 26a4e327cf0797fc8922a5b45b07ded3206edc7e Mon Sep 17 00:00:00 2001 From: brianluau Date: Sat, 18 Jul 2009 21:44:52 +0000 Subject: - Fixed the config description for 'random_monster_checklv' (follow up to r13952). (bugreport:3378) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13954 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 2 +- src/map/mob.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map') diff --git a/src/map/battle.c b/src/map/battle.c index 0474d82a0..8852d19bd 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3481,7 +3481,7 @@ static const struct _battle_data { { "summon_flora_setting", &battle_config.summon_flora, 1|2, 0, 1|2, }, { "clear_skills_on_death", &battle_config.clear_unit_ondeath, BL_NUL, BL_NUL, BL_ALL, }, { "clear_skills_on_warp", &battle_config.clear_unit_onwarp, BL_ALL, BL_NUL, BL_ALL, }, - { "random_monster_checklv", &battle_config.random_monster_checklv, 1, 0, 1, }, + { "random_monster_checklv", &battle_config.random_monster_checklv, 0, 0, 1, }, { "attribute_recover", &battle_config.attr_recover, 1, 0, 1, }, { "flooritem_lifetime", &battle_config.flooritem_lifetime, 60000, 1000, INT_MAX, }, { "item_auto_get", &battle_config.item_auto_get, 0, 0, 1, }, diff --git a/src/map/mob.c b/src/map/mob.c index 9e319eb42..e6fa8d2fd 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -411,7 +411,7 @@ int mob_once_spawn(struct map_session_data* sd, int m, short x, short y, const c for (count = 0; count < amount; count++) { - int c = ( class_ >= 0 ) ? class_ : mob_get_random_id(-class_-1, !battle_config.random_monster_checklv?3:1, lv); + int c = ( class_ >= 0 ) ? class_ : mob_get_random_id(-class_-1, battle_config.random_monster_checklv?3:1, lv); md = mob_once_spawn_sub(sd?&sd->bl:NULL, m, x, y, mobname, c, event); if (!md) continue; -- cgit v1.2.3-70-g09d2