rnd-20040424-1-src
authorHolger Schemel <info@artsoft.org>
Sat, 24 Apr 2004 12:22:36 +0000 (14:22 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:47:02 +0000 (10:47 +0200)
* fixed dynabombs exploding now into anything diggable
* fixed Supaplex style gravity movement into buggy base now impossible
* added pressing key "space" as valid action to select menu options

ChangeLog
src/conftime.h
src/editor.c
src/events.c
src/init.c

index 3abd5c1fc3db45cda807db24aab088fd6d75e4d3..12dc0ab0174e31444c1f84486234a1bcdb845a32 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-23
+       * fixed dynabombs exploding now into anything diggable
+       * fixed Supaplex style gravity movement into buggy base now impossible
+       * added pressing key "space" as valid action to select menu options
+
 2004-04-20
        * added "replace when walkable" to relocate player to walkable element
        * added "enter"/"leave" event for elements affected by relocation
index bbf0b89ca9b6d6c34d275a3bb9cc3127836ce84b..28fcf97a2a6faf2b6a8a5c210bbda9abf4ccf107 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "[2004-04-23 09:52]"
+#define COMPILE_DATE_STRING "[2004-04-24 03:11]"
index 6a808a57ade57a4f9fa1538e0034b6e84ed68876..c4392072282e37d0f8eec97c5b231a9dd7233ccd 100644 (file)
@@ -5859,12 +5859,18 @@ static void CopyCustomElementPropertiesToEditor(int element)
      CAN_EXPLODE_CROSS(element));
 
   /* special case: sub-settings dependent from main setting */
+#if 0
+  custom_element.can_explode_by_fire = CAN_EXPLODE_BY_FIRE(element);
+  custom_element.can_explode_smashed = CAN_EXPLODE_SMASHED(element);
+  custom_element.can_explode_impact  = CAN_EXPLODE_IMPACT(element);
+#else
   if (CAN_EXPLODE_BY_FIRE(element))
     custom_element.can_explode_by_fire = TRUE;
   if (CAN_EXPLODE_SMASHED(element))
     custom_element.can_explode_smashed = TRUE;
   if (CAN_EXPLODE_IMPACT(element))
     custom_element.can_explode_impact  = TRUE;
+#endif
 
   /* ---------- element settings: advanced (custom elements) --------------- */
 
@@ -5946,6 +5952,7 @@ static void CopyCustomElementPropertiesToGame(int element)
 {
   int i;
   int access_type_and_layer;
+  boolean can_explode;
 
   /* mark that this custom element has been modified */
   custom_element.modified_settings = TRUE;
@@ -6022,6 +6029,17 @@ static void CopyCustomElementPropertiesToGame(int element)
     custom_element_properties[EP_EXPLODE_RESULT];
 
   /* special case: sub-settings dependent from main setting */
+#if 0
+  can_explode = (custom_element_properties[EP_CAN_EXPLODE_1X1] ||
+                custom_element_properties[EP_CAN_EXPLODE_3X3] ||
+                custom_element_properties[EP_CAN_EXPLODE_CROSS]);
+  custom_element_properties[EP_CAN_EXPLODE_BY_FIRE] =
+    (can_explode && custom_element.can_explode_by_fire);
+  custom_element_properties[EP_CAN_EXPLODE_SMASHED] =
+    (can_explode && custom_element.can_explode_smashed);
+  custom_element_properties[EP_CAN_EXPLODE_IMPACT] =
+    (can_explode && custom_element.can_explode_impact);
+#else
   if (custom_element_properties[EP_CAN_EXPLODE_1X1] ||
       custom_element_properties[EP_CAN_EXPLODE_3X3] ||
       custom_element_properties[EP_CAN_EXPLODE_CROSS])
@@ -6033,6 +6051,7 @@ static void CopyCustomElementPropertiesToGame(int element)
     custom_element_properties[EP_CAN_EXPLODE_IMPACT] =
       custom_element.can_explode_impact;
   }
+#endif
 
   /* ---------- element settings: advanced (custom elements) --------------- */
 
index abf5711fdf6f3da311d21917a0ca721898801b0e..0f11b48a6a7256b9b569509cd5633a96c5bca100 100644 (file)
@@ -690,6 +690,7 @@ void HandleKey(Key key, int key_status)
     case GAME_MODE_INFO:
       switch(key)
       {
+       case KSYM_space:
        case KSYM_Return:
          if (game_status == GAME_MODE_MAIN)
            HandleMainMenu(0,0, 0,0, MB_MENU_CHOICE);
@@ -736,6 +737,7 @@ void HandleKey(Key key, int key_status)
     case GAME_MODE_SCORES:
       switch(key)
       {
+       case KSYM_space:
        case KSYM_Return:
        case KSYM_Escape:
          game_status = GAME_MODE_MAIN;
index b19f825bf6021b0738285dc70dd32c3d6e5dd4cb..04067389c78194fc1ec30a5e7419f2bbe761e157 100644 (file)
@@ -3367,9 +3367,14 @@ void InitElementPropertiesEngine(int engine_version)
                                     CAN_EXPLODE_IMPACT(i)));
 
     /* ---------- CAN_EXPLODE_3X3 ------------------------------------------ */
+#if 0
+    SET_PROPERTY(i, EP_CAN_EXPLODE_3X3, (!CAN_EXPLODE_1X1(i) &&
+                                        !CAN_EXPLODE_CROSS(i)));
+#else
     SET_PROPERTY(i, EP_CAN_EXPLODE_3X3, (CAN_EXPLODE(i) &&
                                         !CAN_EXPLODE_1X1(i) &&
                                         !CAN_EXPLODE_CROSS(i)));
+#endif
 
     /* ---------- CAN_EXPLODE_BY_DRAGONFIRE -------------------------------- */
     SET_PROPERTY(i, EP_CAN_EXPLODE_BY_DRAGONFIRE, CAN_EXPLODE_BY_FIRE(i));