Prev: A44B Up: Map Next: A4A1
A493: Expire Actor
Counts off an actor which is in a different room to the player. Once it has been counted off 40 times it is removed.
Input
IX Actor record
ExpireActor A493 INC (IX+$08) Increase the time the actor has spent in another room by one.
A496 LD A,(IX+$08) Fetch the time the actor has spent in another room.
A499 CP $40 Return if the actor has spent less than 40 in another room.
A49B RET C
A49C LD (IX+$00),$00 Empty the record by setting the sprite ID to 00.
A4A0 RET Return.
Prev: A44B Up: Map Next: A4A1