From 30cc891aff2f3ed3e5d036aa39fae4532549b539 Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Tue, 11 Sep 2018 21:27:54 -0400 Subject: [PATCH] Fix doorframe drawing for single entrance start --- entrances.asm | 4 ++++ tables.asm | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/entrances.asm b/entrances.asm index 382aa31..c11702d 100644 --- a/entrances.asm +++ b/entrances.asm @@ -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 diff --git a/tables.asm b/tables.asm index 85134fc..8539cbb 100644 --- a/tables.asm +++ b/tables.asm @@ -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 ;--------------------------------------------------------------------------------