From 8384bb8b95c79c4c336d10de9a87a7287ecfd19c Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 6 Mar 2006 13:34:35 +0100 Subject: [PATCH] rnd-20060306-1-src * fixed bug with missing (zero) score values for native Supaplex levels --- ChangeLog | 3 +++ src/conftime.h | 2 +- src/files.c | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 36366f10..b9b13f22 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-03-06 + * fixed bug with missing (zero) score values for native Supaplex levels + 2006-03-05 * added "continuous snapping" (snapping many elements while holding the snap key pressed, without releasing the snap key after each element) diff --git a/src/conftime.h b/src/conftime.h index 02bdb45e..828034f9 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2006-03-05 13:50]" +#define COMPILE_DATE_STRING "[2006-03-06 13:34]" diff --git a/src/files.c b/src/files.c index c2b9d0e0..eccd265d 100644 --- a/src/files.c +++ b/src/files.c @@ -2980,8 +2980,12 @@ static void LoadLevelFromFileStream_SP(FILE *file, struct LevelInfo *level, level->time_wheel = 0; level->amoeba_content = EL_EMPTY; +#if 1 + /* original Supaplex does not use score values -- use default values */ +#else for (i = 0; i < LEVEL_SCORE_ELEMENTS; i++) level->score[i] = 0; /* !!! CORRECT THIS !!! */ +#endif /* there are no yamyams in supaplex levels */ for (i = 0; i < level->num_yamyam_contents; i++) -- 2.34.1