ref: 1a69d6b888f9372060dad1af867c4a5c4113b40e
dir: /engine/overworld/is_player_just_outside_map.asm/
; returns whether the player is one tile outside the map in Z IsPlayerJustOutsideMap: ; 128d8 (4:68d8) ld a, [W_YCOORD] ld b, a ld a, [W_CURMAPHEIGHT] call .compareCoordWithMapDimension ret z ld a, [W_XCOORD] ld b, a ld a, [W_CURMAPWIDTH] .compareCoordWithMapDimension add a cp b ret z inc b ret