replace uses of minus one

This commit is contained in:
YamaArashi 2015-07-19 14:01:08 -07:00
parent 02bd91b707
commit e607199397
6 changed files with 12 additions and 7 deletions

View file

@ -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

View file

@ -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]

View file

@ -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]