Prev: 45359 Up: Map Next: 45447
45418: Update Moved Actor
This code is not used. If the actor was in the room of the player (the room saved in Moved_Actor_Room) then it is removed from the screen. If the actor is now in the room of the player then it is drawn and stored.
Input
DE Position of the actor
IX Actor record
45418 DEFB 58,171,150 A=*Moved_Actor_Room.
45421 DEFB 71 Store the room in B.
45422 DEFB 58,3,151 A=*38659 (the room of the player).
45425 DEFB 184 Compare with the room in B.
45426 DEFB 213 Stash DE on the stack.
45427 DEFB 204,245,184 Call RemoveEntity if the actor was in the room of the player.
45430 DEFB 209 Restore DE from the stack.
45431 DEFB 58,3,151 A=*38659 (the room of the player).
45434 DEFB 221,190,1 Compare with IX+1 (the room of the actor).
45437 DEFB 192 Return if the actor is not in the room of the player.
45438 DEFB 213 Stash DE on the stack.
45439 DEFB 205,25,185 Draw the actor.
45442 DEFB 205,11,187 Remember the position of the actor.
45445 DEFB 209 Restore DE from the stack.
45446 DEFB 201 Return.
Prev: 45359 Up: Map Next: 45447