; curr_room_exits: ptr to exits table
; a: direction EAST, WEST, NORTH, SOUTH, EXIT_SPECIAL
room_goto:
- ; TODO: save current tables back
+ ; TODO: save current tables back
+ push af
+
+ ; dst = original actor table
+ ld hl, curr_room_actor_table
+ ld a, [hl+]
+ ld d, a
+ ld a, [hl+]
+ ld h, a
+ ld l, d
+
+ ; src = actor_table
+ ld de, actor_table
+ ld bc, ACTOR_TABLE_SIZE
+ ; TODO fix actor table saving
+ ; call memcpy
+
+ pop af
+
; save a for later
push af
call disableinterrutpts