From: Holger Schemel Date: Sun, 14 Feb 1999 02:09:02 +0000 (+0100) Subject: rnd-19990214-2 X-Git-Tag: 1.4.0^2~46 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f6482a3218cec02ca8e251993972e681e47d4244;p=rocksndiamonds.git rnd-19990214-2 --- diff --git a/src/files.c b/src/files.c index 71d01e94..2ef526dd 100644 --- a/src/files.c +++ b/src/files.c @@ -26,7 +26,7 @@ #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 */ @@ -314,6 +314,7 @@ static void setLevelInfoToDefaults() level.dauer_ablenk = 10; level.amoebe_inhalt = EL_DIAMANT; level.double_speed = FALSE; + level.gravity = FALSE; for(i=0; iMovPos && level.gravity) + { + if (player->action == MV_NO_MOVING) + player->programmed_action = MV_DOWN; + } + */ + + DrawPlayer(player); if (!player->MovPos) diff --git a/src/main.h b/src/main.h index ec429bfb..10e7161a 100644 --- a/src/main.h +++ b/src/main.h @@ -357,6 +357,7 @@ struct LevelInfo int dauer_ablenk; int amoebe_inhalt; boolean double_speed; + boolean gravity; }; struct LevelDirInfo