projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed Makefile for distribution package (which has no Makefile for graphics)
[rocksndiamonds.git]
/
src
/
files.c
diff --git
a/src/files.c
b/src/files.c
index 9704cdfd5b294f1a7296522fac3ca6e9f8b6f999..ac73db93f8faf2337d1cba0f3e8e268b998478cc 100644
(file)
--- a/
src/files.c
+++ b/
src/files.c
@@
-288,6
+288,11
@@
static struct LevelFileConfigInfo chunk_config_ELEM[] =
TYPE_BOOLEAN, CONF_VALUE_8_BIT(12),
&li.shifted_relocation, FALSE
},
TYPE_BOOLEAN, CONF_VALUE_8_BIT(12),
&li.shifted_relocation, FALSE
},
+ {
+ EL_PLAYER_1, -1,
+ TYPE_BOOLEAN, CONF_VALUE_8_BIT(15),
+ &li.lazy_relocation, FALSE
+ },
/* (these values are different for each player) */
{
/* (these values are different for each player) */
{
@@
-3007,6
+3012,8
@@
static int LoadLevel_NOTE(File *file, int chunk_size, struct LevelInfo *level)
int envelope_nr = element - EL_ENVELOPE_1;
int real_chunk_size = 2;
int envelope_nr = element - EL_ENVELOPE_1;
int real_chunk_size = 2;
+ xx_envelope = level->envelope[envelope_nr]; /* copy into temporary buffer */
+
while (!checkEndOfFile(file))
{
real_chunk_size += LoadLevel_MicroChunk(file, chunk_config_NOTE,
while (!checkEndOfFile(file))
{
real_chunk_size += LoadLevel_MicroChunk(file, chunk_config_NOTE,
@@
-3016,7
+3023,7
@@
static int LoadLevel_NOTE(File *file, int chunk_size, struct LevelInfo *level)
break;
}
break;
}
- level->envelope[envelope_nr] = xx_envelope;
+ level->envelope[envelope_nr] = xx_envelope;
/* copy from temporary buffer */
return real_chunk_size;
}
return real_chunk_size;
}