; loads actors from
- ; [curr_room_init_act]
+ ; [curr_room_actor_table]
; into the active actor table
room_load_actors:
; clear actor table
call memset
; hl = ptr to initial actor table
- ld hl, curr_room_init_act
+ ld hl, curr_room_actor_table
ld a, [hl+]
ld e, a
ld a, [hl]
#define ACTOR_TABLE_SIZE ACTORS_MAX * actor_size
+ ; ptr to current actor table
actor_table: .adv ACTOR_TABLE_SIZE
actor_soam_ptr: .adv 2
; layout:
; byte 0: length of actor table
; bytes 1-n: n bytes of actor data to be copied to actor table
-curr_room_init_act: .adv 2
+curr_room_actor_table: .adv 2
; ptr to exits
curr_room_exits: .adv 2