Fix light cone not showing after torches extinguish

This commit is contained in:
2026-01-16 18:27:32 -06:00
parent 420f2477fc
commit 5831117e36

View File

@@ -34,16 +34,20 @@ RTL
; Output: 0 locked, 1 open ; Output: 0 locked, 1 open
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
CheckForZelda: CheckForZelda:
LDA.l ProgressIndicator : CMP.b #$02 : !BLT + ; Skip if rain is falling LDA.l ProgressIndicator : CMP.b #$02 : !BLT + ; Skip if rain is falling
LDA.b #$01 ; pretend we have zelda anyway LDA.b #$01 ; pretend we have zelda anyway
RTL RTL
+ +
LDA.l FollowerIndicator LDA.l FollowerIndicator
RTL RTL
;================================================================================ ;================================================================================
SetOverlayIfLamp: SetOverlayIfLamp:
JSL LampCheck JSL LampCheck
STA.b SUBDESQ ; write it directly to the overlay, this isn't a terrible idea at all CMP.b #$00
BEQ +
LDA.b #$01
+
STA.b SUBDESQ ; write it directly to the overlay, this isn't a terrible idea at all
RTL RTL
;================================================================================ ;================================================================================
; Mantle Object Changes ; Mantle Object Changes