From: Holger Schemel Date: Fri, 30 Jan 2004 21:21:12 +0000 (+0100) Subject: rnd-20040130-2-src X-Git-Tag: 3.1.0^2~80 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a507c4034ee989815fcf9b325d5be1d17c29bb57;p=rocksndiamonds.git rnd-20040130-2-src --- diff --git a/src/conftime.h b/src/conftime.h index 09285d01..db22644d 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2004-01-30 19:50]" +#define COMPILE_DATE_STRING "[2004-01-30 22:15]" diff --git a/src/files.c b/src/files.c index f364ae95..dd601674 100644 --- a/src/files.c +++ b/src/files.c @@ -627,11 +627,12 @@ static int LoadLevel_HEAD(FILE *file, int chunk_size, struct LevelInfo *level) level->initial_gravity = (getFile8Bit(file) == 1 ? TRUE : FALSE); level->encoding_16bit_field = (getFile8Bit(file) == 1 ? TRUE : FALSE); level->em_slippery_gems = (getFile8Bit(file) == 1 ? TRUE : FALSE); - level->block_last_field = (getFile8Bit(file) == 1 ? TRUE : FALSE); - level->sp_block_last_field = (getFile8Bit(file) == 1 ? TRUE : FALSE); level->use_custom_template = (getFile8Bit(file) == 1 ? TRUE : FALSE); + level->block_last_field = (getFile8Bit(file) == 1 ? TRUE : FALSE); + level->sp_block_last_field = (getFile8Bit(file) == 1 ? TRUE : FALSE); + ReadUnusedBytesFromFile(file, LEVEL_HEADER_UNUSED); return chunk_size; @@ -2141,11 +2142,12 @@ static void SaveLevel_HEAD(FILE *file, struct LevelInfo *level) putFile8Bit(file, (level->initial_gravity ? 1 : 0)); putFile8Bit(file, (level->encoding_16bit_field ? 1 : 0)); putFile8Bit(file, (level->em_slippery_gems ? 1 : 0)); - putFile8Bit(file, (level->block_last_field ? 1 : 0)); - putFile8Bit(file, (level->sp_block_last_field ? 1 : 0)); putFile8Bit(file, (level->use_custom_template ? 1 : 0)); + putFile8Bit(file, (level->block_last_field ? 1 : 0)); + putFile8Bit(file, (level->sp_block_last_field ? 1 : 0)); + WriteUnusedBytesToFile(file, LEVEL_HEADER_UNUSED); }