Fix doorframe drawing for single entrance start
This commit is contained in:
@@ -86,9 +86,13 @@ AllowStartFromSingleEntranceCave:
|
|||||||
STA $7EC14C ; Cache the overworld area number
|
STA $7EC14C ; Cache the overworld area number
|
||||||
STA $7EC140 ; Cache the aux 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
|
SEP #$20 ; set 8-bit accumulator
|
||||||
LDX $00
|
LDX $00
|
||||||
LDA.l StartingAreaOverworldDoor, X : STA.l $7F5099 ;Load overworld door
|
LDA.l StartingAreaOverworldDoor, X : STA.l $7F5099 ;Load overworld door
|
||||||
|
|
||||||
REP #$20 ; reset 16-bit accumulator
|
REP #$20 ; reset 16-bit accumulator
|
||||||
|
|
||||||
.done
|
.done
|
||||||
|
|||||||
@@ -928,7 +928,7 @@ db $00, $00, $00, $00, $00, $00, $00
|
|||||||
org $308247 ; PC 0x180247
|
org $308247 ; PC 0x180247
|
||||||
; For any starting areas in single entrance caves you can specify the overworld door here
|
; 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.
|
; 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:
|
StartingAreaOverworldDoor:
|
||||||
db $00, $00, $00, $00, $00, $00, $00
|
db $00, $00, $00, $00, $00, $00, $00
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user