summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-14 18:27:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-14 18:50:50 +0300
commit6041f7d3be8a0792a287fc9cff7f14c1c3c3b73c (patch)
tree964b6acde70d4875d9ba260628def1de63e3b42f /src/map/atcommand.c
parente5543af5e3b431d7411fa1a493402ea23e9691c2 (diff)
downloadhercules-6041f7d3be8a0792a287fc9cff7f14c1c3c3b73c.tar.gz
hercules-6041f7d3be8a0792a287fc9cff7f14c1c3c3b73c.tar.bz2
hercules-6041f7d3be8a0792a287fc9cff7f14c1c3c3b73c.tar.xz
hercules-6041f7d3be8a0792a287fc9cff7f14c1c3c3b73c.zip
Dont load roulette_db.conf if roulette disabled.
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 94e629adb..e422a5de4 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -3643,6 +3643,8 @@ ACMD(reloadbattleconf)
memcpy(&prev_config, &battle_config, sizeof(prev_config));
battle->config_read(map->BATTLE_CONF_FILENAME);
+ if (prev_config.feature_roulette == 0 && battle_config.feature_roulette == 1 && !clif->parse_roulette_db())
+ battle_config.feature_roulette = 0;
if( prev_config.item_rate_mvp != battle_config.item_rate_mvp
|| prev_config.item_rate_common != battle_config.item_rate_common