From: Holger Schemel Date: Fri, 4 Dec 2020 20:51:57 +0000 (+0100) Subject: fixed score of some game elements when reading native DC2 levels X-Git-Tag: 4.2.0.5~1 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=4bc7734b858d687cea4c0bf86ee42e442d0c0817;p=rocksndiamonds.git fixed score of some game elements when reading native DC2 levels --- diff --git a/src/files.c b/src/files.c index 9f4408b3..258d73da 100644 --- a/src/files.c +++ b/src/files.c @@ -5717,6 +5717,10 @@ static void LoadLevelFromFileStream_DC(File *file, struct LevelInfo *level, level->extra_time = header[56] | (header[57] << 8); level->shield_normal_time = header[58] | (header[59] << 8); + // shield and extra time elements do not have a score + level->score[SC_SHIELD] = 0; + level->extra_time_score = 0; + // 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;