warm: made player pointer compatible with code expecting actors
authorLukas Krickl <lukas@krickl.dev>
Mon, 27 Jan 2025 04:23:41 +0000 (05:23 +0100)
committerLukas Krickl <lukas@krickl.dev>
Mon, 27 Jan 2025 04:23:41 +0000 (05:23 +0100)
src/wram.s

index 9c76d17cfafaa776236b37430e5313478eff22b2..357ad667fd4eb5bc78a5cdb5b5968799e1216916 100644 (file)
@@ -17,6 +17,12 @@ actor_table: .adv ACTOR_TABLE_SIZE
 
 actor_soam_ptr: .adv 2
 
+  ; this single byte
+  ; makes the player compatible with 
+  ; an actor pointer
+  ; pass player_type to a function 
+  ; expecting an actor and it will work
+player_type: .adv 1
 player: .adv player_size
 
   ; play a damage animation