actor: Added player version of rf flag update sub
authorLukas Krickl <lukas@krickl.dev>
Fri, 17 Jan 2025 20:03:31 +0000 (21:03 +0100)
committerLukas Krickl <lukas@krickl.dev>
Fri, 17 Jan 2025 20:03:31 +0000 (21:03 +0100)
src/actor.s

index b19cfd01302e35ec74329244f6583691a90bbf82..9d5e1e4975936b02afc45c82013f6c23ea1fbbff 100644 (file)
@@ -182,13 +182,22 @@ actor_anim_verify:
 anim_truncate_pos:
   ret
 
+  ; same as actor_tile_update_rf_flags 
+  ; but decs hl before calling and 
+  ; increments again after 
+player_tile_update_rf_flags:
+  dec hl
+  call actor_tile_update_rf_flags 
+  inc hl
+  ret
+
   ; marks the current actor's tile 
   ; as occupied by an actor
   ; also removes the flag from the actor's current tile 
   ; this only works for the default case of 
   ; an acotr needing a single tile.
   ; inputs:
-  ;   bc: original y/x position ptr
+  ;   bc: (actor ptr) original y/x position ptr
   ;  anim_target_y/x: target position
   ; returns:
   ;   sets the RF_ACTOR flag at target_y/x