Function6ec1 → CanObjectMoveInDirection

This commit is contained in:
Rangi
2018-05-24 12:36:35 -04:00
parent a91aa18dae
commit 3927bcdb9d
3 changed files with 6 additions and 6 deletions

View File

@@ -696,7 +696,7 @@ MapObjectMovementPattern: ; 47dd
and %00000011
or 0
call InitStep
call Function6ec1
call CanObjectMoveInDirection
jr c, .ok2
ld de, SFX_STRENGTH
call PlaySFX
@@ -1049,7 +1049,7 @@ MapObjectMovementPattern: ; 47dd
.RandomWalkContinue:
call InitStep
call Function6ec1 ; check whether the object can move in that direction
call CanObjectMoveInDirection ; check whether the object can move in that direction
jr c, .NewDuration
call UpdateTallGrassFlags
ld hl, OBJECT_ACTION

View File

@@ -1,4 +1,4 @@
Function6ec1: ; 6ec1
CanObjectMoveInDirection: ; 6ec1
ld hl, OBJECT_PALETTE
add hl, bc