From d3ed7fbd2efaa8b56ca2607b0bfc3889f29de3b3 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 31 Aug 2024 21:19:26 +0200 Subject: [PATCH] changed using non-scanned effect elements when reading BDCFF files --- src/game_bd/bd_bdcff.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/game_bd/bd_bdcff.c b/src/game_bd/bd_bdcff.c index 3e17fde5..1f7f3723 100644 --- a/src/game_bd/bd_bdcff.c +++ b/src/game_bd/bd_bdcff.c @@ -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]); -- 2.34.1