From 9e4fc8f8ddc4b37eb586015ed16f7b42008c2ddb Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Wed, 30 Jul 2025 06:30:26 +0200 Subject: [PATCH] mapgen: Fixed collision flags not being set when overwriting door patterns --- src/mapgen.s | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mapgen.s b/src/mapgen.s index 2ab91b7..3e138fd 100644 --- a/src/mapgen.s +++ b/src/mapgen.s @@ -282,6 +282,8 @@ mapgen_draw_room_pattern_row: @x_loop: ld a, [bc] call mapgen_fix_door_adjacent_to_collider + ; save result pattern value + push af ; read from tile and flag tables and write to map @@ -291,7 +293,7 @@ mapgen_draw_room_pattern_row: ld [hl+], a ; write tile ; read pattern again - ld a, [bc] + pop af ; now flags table mapgen_read_value_from_table room_pattern_flags_translation -- 2.30.2