From ccfcd256566afa04a502a8c0ae0151382610defc Mon Sep 17 00:00:00 2001 From: celest Date: Sat, 19 Mar 2005 05:32:30 +0000 Subject: Fixed day and night settings not ignored even if they are set to 0 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1252 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/map/battle.c b/src/map/battle.c index e3980090d..483ddffb7 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -4478,9 +4478,9 @@ void battle_validate_conf() { battle_config.night_at_start = 0; else if (battle_config.night_at_start > 1) // added by [Yor] battle_config.night_at_start = 1; - if (battle_config.day_duration < 60000) // added by [Yor] + if (battle_config.day_duration != 0 && battle_config.day_duration < 60000) // added by [Yor] battle_config.day_duration = 60000; - if (battle_config.night_duration < 60000) // added by [Yor] + if (battle_config.night_duration != 0 && battle_config.night_duration < 60000) // added by [Yor] battle_config.night_duration = 60000; if (battle_config.ban_spoof_namer < 0) // added by [Yor] -- cgit v1.2.3-70-g09d2