projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
610eb15
)
defs: Added actor savegame typedef
author
Lukas Krickl
<lukas@krickl.dev>
Sat, 2 Aug 2025 04:46:09 +0000
(06:46 +0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Sat, 2 Aug 2025 04:46:09 +0000
(06:46 +0200)
src/defs.s
patch
|
blob
|
history
src/wram.s
patch
|
blob
|
history
diff --git
a/src/defs.s
b/src/defs.s
index 21c8fc20da8da0e66ed9f0170f07bbf99e542648..c22aa1eadb9884d3f0d8f47398e8280bd8707d4a 100644
(file)
--- a/
src/defs.s
+++ b/
src/defs.s
@@
-229,6
+229,13
@@
.de act_dialog_opts, 2
.de act_size, 0
+ ; actor save game data
+.se 0
+.de act_sg_pos_y, 1
+.de act_sg_pos_x, 1
+.de act_sg_flags, 1
+.de act_sg_p0, 1
+.de act_sg_size, 0
#define MAP_BG_TILE_OFFSET 0
#define MAP_BG_FLAGS_OFFSET 1
diff --git
a/src/wram.s
b/src/wram.s
index b0a88b077a9ddcda4f4241649f8fabb9c2090e57..93fd1d8401de9b453370f67ac8b37610e8f2e60f 100644
(file)
--- a/
src/wram.s
+++ b/
src/wram.s
@@
-161,5
+161,11
@@
map_st: .adv st_size
map_exit_table: .adv 2
; ptr to the last map header used
map_header: .adv 2
+
+ ; actor savegame data;
+ ; store actor data here on map load
+ ; and re-load on map restore
+ ; if pos y and pos x are both 0 do not restore
+act_sg: .adv act_sg_size * UNITS_MAX * FLOOR_MAP_COUNT
state_end: