No more W_

This commit is contained in:
dannye 2015-08-30 21:38:41 -05:00
parent 1ee9fb408c
commit 38065a744d
190 changed files with 2202 additions and 2202 deletions

View file

@ -3,7 +3,7 @@ HiddenItemNear: ; 7481f (1d:481f)
ld b, 0
.loop
ld de, 3
ld a, [W_CURMAP]
ld a, [wCurMap]
call IsInRestOfArray
ret nc ; return if current map has no hidden items
push bc
@ -24,19 +24,19 @@ HiddenItemNear: ; 7481f (1d:481f)
inc hl
jr nz, .loop ; if the item has already been obtained
; check if the item is within 4-5 tiles (depending on the direction of item)
ld a, [W_YCOORD]
ld a, [wYCoord]
call Sub5ClampTo0
cp d
jr nc, .loop
ld a, [W_YCOORD]
ld a, [wYCoord]
add 4
cp d
jr c, .loop
ld a, [W_XCOORD]
ld a, [wXCoord]
call Sub5ClampTo0
cp e
jr nc, .loop
ld a, [W_XCOORD]
ld a, [wXCoord]
add 5
cp e
jr c, .loop