From 98ad31ff9cc742c78871b78fa3e88fcc0f888530 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Wed, 30 Jul 2025 17:18:41 +0200 Subject: [PATCH] map: Added new flag for covered tile --- src/defs.s | 4 ++++ src/roompatterns.s | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/defs.s b/src/defs.s index 8d58554..ce51a5f 100644 --- a/src/defs.s +++ b/src/defs.s @@ -77,6 +77,10 @@ ; exit table .de CF_EXIT, 2 .de CF_DOOR, 4 + ; if this flag is set do not + ; set object priority bit + ; so that objects are behind the tile +.de CF_COVERED, 8 ; cells struct .se 0 diff --git a/src/roompatterns.s b/src/roompatterns.s index 09dd06c..76e7459 100644 --- a/src/roompatterns.s +++ b/src/roompatterns.s @@ -123,7 +123,7 @@ room_pattern_flags_translation: ; doors .db CF_DOOR, CF_DOOR, CF_DOOR, CF_DOOR ; roof - .db 0x00 + .db CF_COVERED ; table of 6 by 6 room patterns room_pattern_6x6: -- 2.30.2