pop bc
ret z
+ push af
call anim_clear
+ pop af
ret
; truncates the position
actor_tile_update_rf_flags:
push_all
- ; first unset existing flags
+ inc bc ; bc = y pos
- ; add +8 to positions to center on tile
+ ; first unset existing flags
- inc bc ; bc = y pos
+ ; sub 8 to positions to center on tile
ld a, [bc]
sub a, ANIM_MOVE_TILE_SIZE / 2 ; -8 to be in center
ld d, a ; d = y pos
or a, RF_ACTOR
ld [hl], a
+@skip:
pop_all
ret