From: Holger Schemel Date: Mon, 14 Jun 2021 07:56:06 +0000 (+0200) Subject: added adjusting score settings for Sokoban levels X-Git-Tag: 4.3.0.0~133 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=003268b82cd1ced8486f2ada0849170ea4c3bba3;p=rocksndiamonds.git added adjusting score settings for Sokoban levels --- diff --git a/src/files.c b/src/files.c index ac4bd38a..bddb4530 100644 --- a/src/files.c +++ b/src/files.c @@ -6133,6 +6133,10 @@ static void LoadLevelFromFileInfo_SB(struct LevelInfo *level, level->use_step_counter = TRUE; level->auto_exit_sokoban = TRUE; + level->score[SC_TIME_BONUS] = 0; + level->time_score_base = 1; + level->rate_time_over_score = TRUE; + if (load_xsb_to_ces) { // special global settings can now be set in level template @@ -6492,6 +6496,10 @@ static void LoadLevel_InitSettings_SB(struct LevelInfo *level) level->time = 0; level->use_step_counter = TRUE; level->auto_exit_sokoban = TRUE; + + level->score[SC_TIME_BONUS] = 0; + level->time_score_base = 1; + level->rate_time_over_score = TRUE; } }