From 3095991602aba4ef00635a894a0f1a42e8a7c3d9 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 20 Nov 2024 01:03:33 +0100 Subject: [PATCH] changed BD engine to match new GDash code (default values) --- src/game_bd/bd_cavedb.c | 12 +++++++++--- src/game_bd/bd_caveobject.c | 3 +++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/game_bd/bd_cavedb.c b/src/game_bd/bd_cavedb.c index c1b5cb93..5ddc802a 100644 --- a/src/game_bd/bd_cavedb.c +++ b/src/game_bd/bd_cavedb.c @@ -3159,7 +3159,7 @@ GdPropertyDefault gd_cave_defaults_gdash[] = { CAVE_OFFSET(snap_element), O_SPACE }, { CAVE_OFFSET(pushing_stone_prob), 250000 }, { CAVE_OFFSET(pushing_stone_prob_sweet), 1000000 }, - { CAVE_OFFSET(level_bonus_time), 30 }, + { CAVE_OFFSET(mega_stones_pushable_with_sweet), FALSE }, { CAVE_OFFSET(pneumatic_hammer_frame), 5 }, { CAVE_OFFSET(hammered_walls_reappear), FALSE }, { CAVE_OFFSET(hammered_wall_reappear_frame), 100 }, @@ -3167,6 +3167,7 @@ GdPropertyDefault gd_cave_defaults_gdash[] = { CAVE_OFFSET(voodoo_disappear_in_explosion), TRUE }, { CAVE_OFFSET(voodoo_dies_by_stone), FALSE }, { CAVE_OFFSET(voodoo_any_hurt_kills_player), FALSE }, + { CAVE_OFFSET(level_bonus_time), 30 }, { CAVE_OFFSET(level_penalty_time), 30 }, // magic wall @@ -3188,9 +3189,10 @@ GdPropertyDefault gd_cave_defaults_gdash[] = { CAVE_OFFSET(amoeba_timer_wait_for_hatching), FALSE }, { CAVE_OFFSET(level_amoeba_threshold), 200 }, + { CAVE_OFFSET(level_amoeba_time), 999 }, + { CAVE_OFFSET(amoeba_growth_prob), 31250 }, { CAVE_OFFSET(amoeba_fast_growth_prob), 250000 }, - { CAVE_OFFSET(level_amoeba_time), 999 }, { CAVE_OFFSET(amoeba_timer_started_immediately), TRUE }, { CAVE_OFFSET(amoeba_timer_wait_for_hatching), FALSE }, { CAVE_OFFSET(amoeba_too_big_effect), O_STONE }, @@ -3198,9 +3200,10 @@ GdPropertyDefault gd_cave_defaults_gdash[] = // amoeba { CAVE_OFFSET(level_amoeba_2_threshold), 200 }, + { CAVE_OFFSET(level_amoeba_2_time), 999 }, + { CAVE_OFFSET(amoeba_2_growth_prob), 31250 }, { CAVE_OFFSET(amoeba_2_fast_growth_prob), 250000 }, - { CAVE_OFFSET(level_amoeba_2_time), 999 }, { CAVE_OFFSET(amoeba_2_too_big_effect), O_STONE }, { CAVE_OFFSET(amoeba_2_enclosed_effect), O_DIAMOND }, { CAVE_OFFSET(amoeba_2_explodes_by_amoeba), TRUE }, @@ -3213,6 +3216,9 @@ GdPropertyDefault gd_cave_defaults_gdash[] = // nut { CAVE_OFFSET(nut_turns_to_when_crushed), O_NUT_CRACK_1 }, + // expanding wall + { CAVE_OFFSET(expanding_wall_changed), FALSE }, + // replicator { CAVE_OFFSET(replicator_delay_frame), 4 }, { CAVE_OFFSET(replicators_active), TRUE }, diff --git a/src/game_bd/bd_caveobject.c b/src/game_bd/bd_caveobject.c index 421d8c24..9b68d9a7 100644 --- a/src/game_bd/bd_caveobject.c +++ b/src/game_bd/bd_caveobject.c @@ -1584,6 +1584,9 @@ GdCave *gd_cave_new_rendered(const GdCave *data, const int level, const unsigned gd_cave_correct_visible_size(cave); + cave->last_direction = GD_MV_STILL; + cave->last_horizontal_direction = GD_MV_STILL; + return cave; } -- 2.34.1