![]() |
Routines |
| Prev: 44295 | Up: Map | Next: 44375 |
|
Used by the routines at HandlerHippoWarthog, HandlerWulf, HandlerTribesman, HandlerRhino and KnockBackRhino.
Updates the display of an actor which has been moved. If the actor is in the same room as the player then it is drawn (see UpdateActorInRoom). If the actor is not in the room of the player but it was in the room last time (the room is held in Previous_Room) then it is removed from the screen.
|
||||||||
| UpdateActor | 44358 | LD A,(38659) | Fetch the room of the player from 38659. | |||||
| 44361 | LD C,A | Stash the room of the player in C. | ||||||
| 44362 | CP (IX+1) | Jump to UpdateActorInRoom if the actor is in the same room as the player. | ||||||
| 44365 | JR Z,UpdateActorInRoom | |||||||
| 44367 | LD A,(38562) | Fetch the previous room of the actor from Previous_Room. | ||||||
| 44370 | CP C | Return if the actor was not in the room of the player. | ||||||
| 44371 | RET NZ | |||||||
| 44372 | JP RemoveEntity | Jump to RemoveEntity to remove the actor from the screen. | ||||||
| Prev: 44295 | Up: Map | Next: 44375 |