mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00
Merge pull request #39 from jojo-kep/master
attempt to band-aide missable objects not hiding properly
This commit is contained in:
commit
e699a3db4b
|
@ -142,8 +142,21 @@ HideObject:
|
|||
ld c, a
|
||||
ld b, FLAG_SET
|
||||
call MissableObjectFlagAction ; set "removed" flag
|
||||
call VerifyObjectState
|
||||
jr z, HideObject
|
||||
jp UpdateSprites
|
||||
|
||||
;returns z flag set if shown and z flag cleared if hidden
|
||||
VerifyObjectState:
|
||||
ld hl, wMissableObjectFlags
|
||||
ld a, [wMissableObjectIndex]
|
||||
ld c, a
|
||||
ld b, FLAG_TEST
|
||||
call MissableObjectFlagAction
|
||||
ld a, c
|
||||
and a
|
||||
ret
|
||||
|
||||
MissableObjectFlagAction:
|
||||
; identical to FlagAction
|
||||
|
||||
|
|
Loading…
Reference in a new issue