projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec3366c
)
Fixed crash during room transitions
author
Lukas Krickl
<lukas@krickl.dev>
Tue, 24 Dec 2024 07:18:34 +0000
(08:18 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Tue, 24 Dec 2024 07:18:34 +0000
(08:18 +0100)
This was caused by a bad pointer being passed to load_room_from.
src/map.s
patch
|
blob
|
history
diff --git
a/src/map.s
b/src/map.s
index d941d922a76da0eaee68675afcb214940f68b907..3bddb82f176b59d9ddf492d9f1b49c0e1494d93d 100644
(file)
--- a/
src/map.s
+++ b/
src/map.s
@@
-147,7
+147,7
@@
room_goto_player_pos:
; default use special exit
ld a, EXIT_SPECIAL
; no need to jmp in default case
-
+ ret ; TODO: enable special exit?
; transitions to a new room
; that is part of the map:
@@
-173,9
+173,9
@@
room_goto:
; load room ptr into de
ld a, [hl+]
- ld d, a
- ld a, [hl]
ld e, a
+ ld a, [hl]
+ ld d, a
call room_load_from