; curr_room_exits: ptr to exits table
; a: direction EAST, WEST, NORTH, SOUTH, EXIT_SPECIAL
room_goto:
+
+ ; TODO: save current tables back
+ ; TODO: weird oob reads when calling room_load_from
+
+ ld hl, curr_room_exits ; ptr to exit table
+ ld a, [hl+]
+ ld c, a
+ ld a, [hl]
+ ld b, a ; bc = exit table
+
+ ld h, 0
+ ld l, a
+ add hl, bc ; hl = exit table + exit direction
+
+ ; load room ptr into de
+ ld a, [hl+]
+ ld d, a
+ ld a, [hl]
+ ld e, a
+
+ call room_load_from
+
+ ; its player's turn again
+ ld a, WHO_PLAYER
+ ld [who], a
+
ret
; loads actors from