Rename wVramState to wStateFlags and use flag constants (#1078)
This commit is contained in:
@@ -205,8 +205,8 @@ Movement_step_end:
|
||||
add hl, bc
|
||||
ld [hl], $0
|
||||
|
||||
ld hl, wVramState
|
||||
res 7, [hl]
|
||||
ld hl, wStateFlags
|
||||
res SCRIPTED_MOVEMENT_STATE_F, [hl]
|
||||
|
||||
ld hl, OBJECT_STEP_TYPE
|
||||
add hl, bc
|
||||
@@ -232,8 +232,8 @@ Movement_48:
|
||||
add hl, bc
|
||||
ld [hl], STEP_TYPE_SLEEP
|
||||
|
||||
ld hl, wVramState
|
||||
res 7, [hl]
|
||||
ld hl, wStateFlags
|
||||
res SCRIPTED_MOVEMENT_STATE_F, [hl]
|
||||
ret
|
||||
|
||||
Movement_remove_object:
|
||||
@@ -245,8 +245,8 @@ Movement_remove_object:
|
||||
ld [hl], -1
|
||||
|
||||
.not_leading
|
||||
ld hl, wVramState
|
||||
res 7, [hl]
|
||||
ld hl, wStateFlags
|
||||
res SCRIPTED_MOVEMENT_STATE_F, [hl]
|
||||
ret
|
||||
|
||||
Movement_4b:
|
||||
@@ -258,8 +258,8 @@ Movement_4b:
|
||||
add hl, bc
|
||||
ld [hl], STEP_TYPE_STANDING
|
||||
|
||||
ld hl, wVramState
|
||||
res 7, [hl]
|
||||
ld hl, wStateFlags
|
||||
res SCRIPTED_MOVEMENT_STATE_F, [hl]
|
||||
ret
|
||||
|
||||
Movement_step_sleep_1:
|
||||
|
Reference in New Issue
Block a user