From 09860e459da2271afbb34cc13147bedad33a430d Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Fri, 20 Dec 2024 11:01:33 +0100 Subject: [PATCH] Added special exit flag --- src/map.s | 5 +++-- src/wram.s | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/map.s b/src/map.s index 4233cf4..d394fa4 100644 --- a/src/map.s +++ b/src/map.s @@ -54,13 +54,13 @@ room_load_from: ; curr_room_exits: ptr to exits table ; player_x/y: player position room_goto_player_pos: - ld a, NORTH + ld a, EXIT_SPECIAL ; transitions to a new room ; that is part of the map: ; inputs: ; curr_room_exits: ptr to exits table - ; a: direction EAST, WEST, NORTH, SOUTH + ; a: direction EAST, WEST, NORTH, SOUTH, EXIT_SPECIAL room_goto: ret @@ -318,3 +318,4 @@ dw base_room_struct dw base_room_struct dw base_room_struct dw base_room_struct +dw base_room_struct diff --git a/src/wram.s b/src/wram.s index 7292eb8..6794c57 100644 --- a/src/wram.s +++ b/src/wram.s @@ -77,6 +77,7 @@ damage_anim: .adv 1 #define EAST 1 #define SOUTH 2 #define WEST 3 +#define EXIT_SPECIAL 4 #define MAP_W 10 #define MAP_H 10 -- 2.30.2