From 45f600fe67fa03fd1a52eeb12aee4d79b55bb2fa Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sat, 5 Jul 2025 06:34:18 +0200 Subject: [PATCH] defs: Re-defined map exit goto x and y --- src/defs.s | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/defs.s b/src/defs.s index 28ed01a..dd648a2 100644 --- a/src/defs.s +++ b/src/defs.s @@ -288,15 +288,11 @@ ; map exit flags .se 1 - ; if set players Y/X position - ; to the opposite side of the - ; map upon entering -.de MAP_EXITF_FLIPY, 1 -.de MAP_EXITF_FLIPX, 2 - ; goto will set the actual position - ; based on the exit table entry -.de MAP_EXITF_GOTOY, 4 -.de MAP_EXITF_GOTOX, 8 + ; if these flags are set goto_y and + ; goto_x are treated as relative offsets + ; instead of absolute tile positions +.de MAP_EXITF_GOTOY_REL, 1 +.de MAP_EXITF_GOTOX_REL, 2 ; map exit table entry struct .se 0 -- 2.30.2