From: Holger Schemel Date: Sun, 12 Mar 2023 14:23:27 +0000 (+0100) Subject: added variable to store if level uses McDuffin in MM game engine X-Git-Tag: 4.3.5.2~4 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c2507c62924b560ab4c0ad7330cd78fc562f16ce;p=rocksndiamonds.git added variable to store if level uses McDuffin in MM game engine --- diff --git a/src/game_mm/export.h b/src/game_mm/export.h index 1cbf0b6a..6fbe1aa9 100644 --- a/src/game_mm/export.h +++ b/src/game_mm/export.h @@ -143,6 +143,7 @@ struct GameInfo_MM int ball_choice_pos; // current content element choice position boolean laser_red, laser_green, laser_blue; + boolean has_mcduffin; boolean level_solved; boolean game_over; int game_over_cause; diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index 1542db1a..8cc08bc4 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -570,6 +570,8 @@ static void InitField(int x, int y, boolean init_game) game_mm.laser_green = native_mm_level.df_laser_green; game_mm.laser_blue = native_mm_level.df_laser_blue; } + + game_mm.has_mcduffin = (IS_MCDUFFIN(element)); } break; @@ -662,6 +664,7 @@ void InitGameEngine_MM(void) game_mm.laser_red = FALSE; game_mm.laser_green = FALSE; game_mm.laser_blue = TRUE; + game_mm.has_mcduffin = TRUE; game_mm.level_solved = FALSE; game_mm.game_over = FALSE;