From 4ebbdbd8c00378a75ac48e3e680097e1e71d147f Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Fri, 4 Jul 2025 18:58:42 +0200 Subject: [PATCH] map exits: Added required input field to exit struct --- src/defs.s | 4 ++++ src/macros.inc | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/defs.s b/src/defs.s index bbd1747..6744428 100644 --- a/src/defs.s +++ b/src/defs.s @@ -301,6 +301,10 @@ ; map exit table entry struct .se 0 .de map_exit_flags, 1 + ; if this is != 0 + ; the exit will only trigger + ; if the input specified is pressed +.de map_exit_required_input, 1 .de map_exit_goto_y, 1 .de map_exit_goto_x, 1 ; pointer to new map struct diff --git a/src/macros.inc b/src/macros.inc index bc37519..7a714d2 100644 --- a/src/macros.inc +++ b/src/macros.inc @@ -278,14 +278,16 @@ ; defines an exit table entry ; inputs: ; $1: flags - ; $2: goto y - ; $3: goto x - ; $4: map header pointer + ; $2: required input/0 + ; $3: goto y + ; $4: goto x + ; $5: map header pointer #macro map_exit_table_entry .db $1 .db $2 .db $3 - dw $4 + .db $4 + dw $5 #endmacro ; loads NULL into a 16 bit register -- 2.30.2