blob: 19823c53ec25a00891e0abc0cd42a1d85d0d3f75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
; returns whether the player is one tile outside the map in Z
IsPlayerJustOutsideMap: ; e876c (3a:476c)
ld a, [wYCoord]
ld b, a
ld a, [wCurMapHeight]
call .compareCoordWithMapDimension
ret z
ld a, [wXCoord]
ld b, a
ld a, [wCurMapWidth]
.compareCoordWithMapDimension
add a
cp b
ret z
inc b
ret
|