Fix doorframe drawing for single entrance start

This commit is contained in:
Kevin Cathcart
2018-09-11 21:27:54 -04:00
parent 65f6fbcfab
commit 30cc891aff
2 changed files with 5 additions and 1 deletions

View File

@@ -86,9 +86,13 @@ AllowStartFromSingleEntranceCave:
STA $7EC14C ; Cache the overworld area number
STA $7EC140 ; Cache the aux overworld area number
STZ $0698 ;zero out door overlays in case starting overworld door is not set
STZ $0699 ;zero out door overlays in case starting overworld door is not set
SEP #$20 ; set 8-bit accumulator
LDX $00
LDA.l StartingAreaOverworldDoor, X : STA.l $7F5099 ;Load overworld door
REP #$20 ; reset 16-bit accumulator
.done

View File

@@ -928,7 +928,7 @@ db $00, $00, $00, $00, $00, $00, $00
org $308247 ; PC 0x180247
; For any starting areas in single entrance caves you can specify the overworld door here
; to enable drawing the doorframes These values should be the overworld door index+1.
; A value of zero uses the vanilla door frame table.
; A value of zero will draw no door frame.
StartingAreaOverworldDoor:
db $00, $00, $00, $00, $00, $00, $00
;--------------------------------------------------------------------------------