projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20040218-1-src
[rocksndiamonds.git]
/
src
/
files.c
diff --git
a/src/files.c
b/src/files.c
index c7af57d1ed923d0b4daec8c864b9b47a09e3221f..356d8a4b11dca6581e77f39a6b118acbf1391978 100644
(file)
--- a/
src/files.c
+++ b/
src/files.c
@@
-1011,8
+1011,13
@@
static int LoadLevel_CUS4(FILE *file, int chunk_size, struct LevelInfo *level)
/* ... bits 16 - 31 of "move_pattern" (not nice, but downward compatible) */
ei->move_pattern |= (getFile16BitBE(file) << 16);
/* ... bits 16 - 31 of "move_pattern" (not nice, but downward compatible) */
ei->move_pattern |= (getFile16BitBE(file) << 16);
+ ei->access_direction = getFile8Bit(file);
+
+ ei->explosion_delay = getFile8Bit(file);
+ ei->ignition_delay = getFile8Bit(file);
+
/* some free bytes for future custom property values and padding */
/* some free bytes for future custom property values and padding */
- ReadUnusedBytesFromFile(file,
5
);
+ ReadUnusedBytesFromFile(file,
2
);
/* read change property values */
/* read change property values */
@@
-2582,8
+2587,13
@@
static void SaveLevel_CUS4(FILE *file, struct LevelInfo *level, int element)
/* ... bits 16 - 31 of "move_pattern" (not nice, but downward compatible) */
putFile16BitBE(file, (ei->move_pattern >> 16) & 0xffff);
/* ... bits 16 - 31 of "move_pattern" (not nice, but downward compatible) */
putFile16BitBE(file, (ei->move_pattern >> 16) & 0xffff);
+ putFile8Bit(file, ei->access_direction);
+
+ putFile8Bit(file, ei->explosion_delay);
+ putFile8Bit(file, ei->ignition_delay);
+
/* some free bytes for future custom property values and padding */
/* some free bytes for future custom property values and padding */
- WriteUnusedBytesToFile(file,
5
);
+ WriteUnusedBytesToFile(file,
2
);
/* write change property values */
/* write change property values */