#define MAX_LINE_LEN 1000 /* maximal input line length */
#define CHUNK_ID_LEN 4 /* IFF style chunk id length */
#define LEVEL_HEADER_SIZE 80 /* size of level file header */
-#define LEVEL_HEADER_UNUSED 17 /* unused level header bytes */
+#define LEVEL_HEADER_UNUSED 16 /* unused level header bytes */
#define TAPE_HEADER_SIZE 20 /* size of tape file header */
#define TAPE_HEADER_UNUSED 7 /* unused tape header bytes */
#define FILE_VERSION_1_0 10 /* old 1.0 file version */
level.dauer_ablenk = 10;
level.amoebe_inhalt = EL_DIAMANT;
level.double_speed = FALSE;
+ level.gravity = FALSE;
for(i=0; i<MAX_LEVEL_NAME_LEN; i++)
level.name[i] = '\0';
level.dauer_ablenk = fgetc(file);
level.amoebe_inhalt = fgetc(file);
level.double_speed = (fgetc(file) == 1 ? TRUE : FALSE);
+ level.gravity = (fgetc(file) == 1 ? TRUE : FALSE);
for(i=0; i<LEVEL_HEADER_UNUSED; i++) /* skip unused header bytes */
fgetc(file);
fputc(level.dauer_ablenk, file);
fputc(level.amoebe_inhalt, file);
fputc((level.double_speed ? 1 : 0), file);
+ fputc((level.gravity ? 1 : 0), file);
for(i=0; i<LEVEL_HEADER_UNUSED; i++) /* set unused header bytes to zero */
fputc(0, file);
if (Feld[last_jx][last_jy] == EL_PLAYER_IS_LEAVING)
Feld[last_jx][last_jy] = EL_LEERRAUM;
+
+ /*
+ if (!player->MovPos && level.gravity)
+ {
+ if (player->action == MV_NO_MOVING)
+ player->programmed_action = MV_DOWN;
+ }
+ */
+
+
DrawPlayer(player);
if (!player->MovPos)