Prev: 44408 Up: Map Next: 44449
44409: Change Room
Used by the routines at MovePlayer, 43688 and GameStart.
Input
A Destination room ID
ChangeRoom 44409 LD (44408),A Store the room ID in *44408.
44412 PUSH IX Stash IX on the stack.
44414 LD IX,48088 IX=48088.
44418 CALL 42751 Call 42751.
44421 LD A,0 A=0.
44423 CALL 41416 Call 41416.
44426 JR NZ,ChangeRoom_0 Jump to ChangeRoom_0 if ?? is not equal to 0.
44428 LD A,(44408) Restore the destination room ID from *44408.
44431 CALL MovePlayerToRoom Call MovePlayerToRoom.
44434 LD E,0 E=0.
44436 CALL Handler_RoomExits Call Handler_RoomExits.
44439 LD IX,48204 IX=48204.
44443 CALL 42751 Call 42751.
ChangeRoom_0 44446 POP IX Restore IX from the stack.
44448 RET Return.
Prev: 44408 Up: Map Next: 44449