projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a47d943
)
warm: made player pointer compatible with code expecting actors
author
Lukas Krickl
<lukas@krickl.dev>
Mon, 27 Jan 2025 04:23:41 +0000
(
05:23
+0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Mon, 27 Jan 2025 04:23:41 +0000
(
05:23
+0100)
src/wram.s
patch
|
blob
|
history
diff --git
a/src/wram.s
b/src/wram.s
index 9c76d17cfafaa776236b37430e5313478eff22b2..357ad667fd4eb5bc78a5cdb5b5968799e1216916 100644
(file)
--- 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