changed using non-scanned effect elements when reading BDCFF files
authorHolger Schemel <holger.schemel@virtion.de>
Sat, 31 Aug 2024 19:19:26 +0000 (21:19 +0200)
committerHolger Schemel <holger.schemel@virtion.de>
Sat, 31 Aug 2024 19:19:54 +0000 (21:19 +0200)
src/game_bd/bd_bdcff.c

index 3e17fde560e49194e8544b01e1a83c5ab485f7df..1f7f3723372a9644293077fe2ed1eb776a588fbe 100644 (file)
@@ -1117,7 +1117,8 @@ boolean gd_caveset_load_from_bdcff(const char *contents)
              // found identifier
              void *value = STRUCT_MEMBER_P (cave, gd_cave_properties[i].offset);
 
-             *((GdElement *) value) = gd_get_element_from_string (params[1]);
+             *((GdElement *) value) = non_scanned_pair(gd_get_element_from_string(params[1]));
+
              break;
            }
          }
@@ -1127,12 +1128,15 @@ boolean gd_caveset_load_from_bdcff(const char *contents)
          {
            // for compatibility with tim stridmann's memorydump->bdcff converter... .... ...
            if (strcasecmp(params[0], "BOUNCING_BOULDER") == 0)
-             cave->stone_bouncing_effect = gd_get_element_from_string (params[1]);
+             cave->stone_bouncing_effect =
+                non_scanned_pair(gd_get_element_from_string(params[1]));
            else if (strcasecmp(params[0], "EXPLOSION3S") == 0)
-             cave->explosion_effect = gd_get_element_from_string(params[1]);
+             cave->explosion_effect =
+                non_scanned_pair(gd_get_element_from_string(params[1]));
            // falling with one l...
            else if (strcasecmp(params[0], "STARTING_FALING_DIAMOND") == 0)
-             cave->diamond_falling_effect = gd_get_element_from_string (params[1]);
+             cave->diamond_falling_effect =
+                non_scanned_pair(gd_get_element_from_string(params[1]));
            // dirt lookslike
            else if (strcasecmp(params[0], "DIRT") == 0)
              cave->dirt_looks_like = gd_get_element_from_string (params[1]);