From: Lukas Krickl Date: Wed, 30 Jul 2025 04:30:26 +0000 (+0200) Subject: mapgen: Fixed collision flags not being set when overwriting door patterns X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=9e4fc8f8ddc4b37eb586015ed16f7b42008c2ddb;p=gbrg%2F.git mapgen: Fixed collision flags not being set when overwriting door patterns --- 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