From: Lukas Krickl Date: Mon, 27 Jan 2025 04:23:41 +0000 (+0100) Subject: warm: made player pointer compatible with code expecting actors X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=011e3e49a40d5fda82b39c54bffed3e6b8b455ea;p=gbrg%2F.git warm: made player pointer compatible with code expecting actors --- 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