X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Finit.c;h=0b925c68e86b05f1eea15c5a298a0ed6932be155;hp=be534850ab26da0cf5935fc3fe72da7356116aef;hb=af07d74262e7d5075feaea67fa16c04c6be0e3f6;hpb=7e4b8f18d80358c4c2f4567ab5dd0ec8b7efbae4 diff --git a/src/init.c b/src/init.c index be534850..0b925c68 100644 --- a/src/init.c +++ b/src/init.c @@ -2258,6 +2258,11 @@ void InitElementPropertiesStatic() -1 }; + static int ep_throwable[] = + { + -1 + }; + static int ep_player[] = { EL_PLAYER_1, @@ -3058,6 +3063,7 @@ void InitElementPropertiesStatic() { ep_pushable, EP_PUSHABLE }, { ep_can_explode_cross, EP_CAN_EXPLODE_CROSS }, { ep_protected, EP_PROTECTED }, + { ep_throwable, EP_THROWABLE }, { ep_player, EP_PLAYER }, { ep_can_pass_magic_wall, EP_CAN_PASS_MAGIC_WALL }, @@ -3260,7 +3266,8 @@ void InitElementPropertiesEngine(int engine_version) /* ---------- COLLECTIBLE ---------------------------------------------- */ SET_PROPERTY(i, EP_COLLECTIBLE, (IS_COLLECTIBLE_ONLY(i) || - IS_DROPPABLE(i))); + IS_DROPPABLE(i) || + IS_THROWABLE(i))); /* ---------- SNAPPABLE ------------------------------------------------ */ SET_PROPERTY(i, EP_SNAPPABLE, (IS_DIGGABLE(i) ||