From: Holger Schemel Date: Sat, 27 Apr 2024 11:39:32 +0000 (+0200) Subject: added definitions and macro for BD engine runtime elements X-Git-Tag: 4.4.0.0-test-1~32 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=717df2e9dabf5f4d3c01d6f9b4c8e879fdffb1fe;p=rocksndiamonds.git added definitions and macro for BD engine runtime elements --- diff --git a/src/main.h b/src/main.h index 8ae91599..063ce800 100644 --- a/src/main.h +++ b/src/main.h @@ -965,6 +965,9 @@ (e) == EL_BD_CONVEYOR_DIR_SWITCH || \ (e) == EL_BD_CONVEYOR_DIR_SWITCH_ACTIVE) +#define IS_BD_RUNTIME_ELEMENT(e) ((e) >= EL_BD_RUNTIME_START && \ + (e) <= EL_BD_RUNTIME_END) + #define IS_SOKOBAN_OBJECT_OR_FIELD(e) ((e) == EL_SOKOBAN_OBJECT || \ (e) == EL_SOKOBAN_FIELD_EMPTY || \ (e) == EL_SOKOBAN_FIELD_FULL) @@ -2304,6 +2307,9 @@ #define EL_BD_NUT_BREAKING_4 1486 #define EL_BD_END EL_BD_NUT_BREAKING_4 +#define EL_BD_RUNTIME_START EL_BD_SAND_BALL_FALLING +#define EL_BD_RUNTIME_END EL_BD_NUT_BREAKING_4 + #define NUM_FILE_ELEMENTS 1487