From 667288cc3f60989bfc84ac50bb69dae0c7bb5b22 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 28 Dec 1998 03:18:24 +0100 Subject: [PATCH] rnd-19981228-2 --- src/editor.c | 5 +++++ src/files.c | 9 +++++++++ src/game.c | 18 ++++++++++++++++++ src/init.c | 1 + src/main.h | 6 +++--- src/tools.c | 1 + 6 files changed, 37 insertions(+), 3 deletions(-) diff --git a/src/editor.c b/src/editor.c index 2adf93c8..2d20b09e 100644 --- a/src/editor.c +++ b/src/editor.c @@ -364,6 +364,11 @@ int editor_element[] = EL_MAUER_Y, EL_MAUER_XY, + EL_SPEED_PILL, + EL_LEERRAUM, + EL_LEERRAUM, + EL_LEERRAUM, + EL_CHAR_A + ('S' - 'A'), EL_CHAR_A + ('O' - 'A'), EL_CHAR_A + ('K' - 'A'), diff --git a/src/files.c b/src/files.c index eb87f87e..e1765fd8 100644 --- a/src/files.c +++ b/src/files.c @@ -253,6 +253,8 @@ static void setLevelInfoToDefaults() level.dauer_ablenk = 10; level.amoebe_inhalt = EL_DIAMANT; + level.high_speed = FALSE; + strcpy(level.name, "Nameless Level"); for(i=0; idynamite++; diff --git a/src/init.c b/src/init.c index 6b4bece7..ad4cad8b 100644 --- a/src/init.c +++ b/src/init.c @@ -947,6 +947,7 @@ void InitElementProperties() EL_SP_CHIP_RIGHT, EL_SP_CHIP_UPPER, EL_SP_CHIP_LOWER, + EL_SPEED_PILL }; static int ep_slippery_num = sizeof(ep_slippery)/sizeof(int); diff --git a/src/main.h b/src/main.h index 077fab94..11588dd9 100644 --- a/src/main.h +++ b/src/main.h @@ -339,6 +339,7 @@ struct LevelInfo int dauer_sieb; int dauer_ablenk; int amoebe_inhalt; + boolean high_speed; }; struct LevelDirInfo @@ -551,9 +552,7 @@ extern int num_bg_loops; #define EL_TROPFEN 18 #define EL_BOMBE 19 #define EL_SIEB_INAKTIV 20 - -#define EL_UNUSED_21 21 - +#define EL_SPEED_PILL 21 #define EL_SALZSAEURE 22 #define EL_AMOEBE_NASS 23 #define EL_AMOEBE_NORM 24 @@ -916,6 +915,7 @@ extern int num_bg_loops; #define GFX_EDELSTEIN_ROT 152 #define GFX_EDELSTEIN_LILA 154 #define GFX_DYNABOMB_XL 156 +#define GFX_SPEED_PILL 158 #define GFX_SONDE 159 /* Zeile 10 (160) */ #define GFX_EDELSTEIN_BD 163 diff --git a/src/tools.c b/src/tools.c index 3184acaa..498a44f8 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1933,6 +1933,7 @@ int el2gfx(int element) case EL_PFEIL_R: return GFX_PFEIL_R; case EL_PFEIL_O: return GFX_PFEIL_O; case EL_PFEIL_U: return GFX_PFEIL_U; + case EL_SPEED_PILL: return GFX_SPEED_PILL; default: { if (IS_CHAR(element)) -- 2.34.1