mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
replace uses of minus one
This commit is contained in:
parent
02bd91b707
commit
e607199397
6 changed files with 12 additions and 7 deletions
|
|
@ -29,7 +29,7 @@ HallOfFamePC: ; 7405c (1d:405c)
|
|||
ld c, 128
|
||||
call DelayFrames
|
||||
xor a
|
||||
ld [wNumCreditsMonsDisplayed - 1], a ; not read
|
||||
ld [wUnusedCD3D], a ; not read
|
||||
ld [wNumCreditsMonsDisplayed], a
|
||||
jp Credits
|
||||
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ LoadCoinsToSubtract: ; 528b1 (14:68b1)
|
|||
ld hl,wd141 ; first prize's price
|
||||
add hl,de ; get selected prize's price
|
||||
xor a
|
||||
ld [hCoins - 1],a
|
||||
ld [hUnusedCoinsByte],a
|
||||
ld a,[hli]
|
||||
ld [hCoins],a
|
||||
ld a,[hl]
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ HiddenCoins: ; 76799 (1d:6799)
|
|||
and a
|
||||
ret nz
|
||||
xor a
|
||||
ld [hCoins - 1], a
|
||||
ld [hUnusedCoinsByte], a
|
||||
ld [hCoins], a
|
||||
ld [hCoins + 1], a
|
||||
ld a, [wHiddenObjectFunctionArgument]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue