From 011e3e49a40d5fda82b39c54bffed3e6b8b455ea Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Mon, 27 Jan 2025 05:23:41 +0100 Subject: [PATCH] warm: made player pointer compatible with code expecting actors --- src/wram.s | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wram.s b/src/wram.s index 9c76d17..357ad66 100644 --- a/src/wram.s +++ b/src/wram.s @@ -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 -- 2.30.2