From: Holger Schemel Date: Thu, 7 Jan 2021 11:57:03 +0000 (+0100) Subject: fixed time score for native Emerald Mine and Diamond Caves levels X-Git-Tag: 4.2.2.1~11 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=7f87d0a871432b2ed2fc1a7f3c30fc2c4ecf2dcf;p=rocksndiamonds.git fixed time score for native Emerald Mine and Diamond Caves levels --- diff --git a/src/files.c b/src/files.c index bd4c0cc6..49ed450e 100644 --- a/src/files.c +++ b/src/files.c @@ -3722,6 +3722,9 @@ static void CopyNativeLevel_EM_to_RND(struct LevelInfo *level) if (jx != -1 && jy != -1) level->field[jx][jy] = EL_PLAYER_1 + nr; } + + // time score is counted for each 10 seconds left in Emerald Mine levels + level->time_score_base = 10; } @@ -5739,6 +5742,9 @@ static void LoadLevelFromFileStream_DC(File *file, struct LevelInfo *level, // Diamond Caves has the same (strange) behaviour as Emerald Mine that gems // can slip down from flat walls, like normal walls and steel walls level->em_slippery_gems = TRUE; + + // time score is counted for each 10 seconds left in Diamond Caves levels + level->time_score_base = 10; } static void LoadLevelFromFileInfo_DC(struct LevelInfo *level, @@ -6262,7 +6268,7 @@ static void LoadLevel_InitVersion(struct LevelInfo *level) if (level->game_version < VERSION_IDENT(3,2,0,5)) { // time bonus score was given for 10 s instead of 1 s before 3.2.0-5 - level->score[SC_TIME_BONUS] /= 10; + level->time_score_base = 10; } if (leveldir_current->latest_engine) diff --git a/src/game_em/reademc.c b/src/game_em/reademc.c index dae246c9..dfa293a6 100644 --- a/src/game_em/reademc.c +++ b/src/game_em/reademc.c @@ -312,7 +312,7 @@ void convert_em_level(unsigned char *src, int file_version) cav.nut_score = src[2090]; cav.dynamite_score = src[2091]; cav.key_score = src[2092]; - cav.exit_score = src[2093] * 8 / 5; + cav.exit_score = src[2093]; cav.lenses_score = src[2151]; cav.magnify_score = src[2152];