Prev: 42497 Up: Map Next: 42523
42505: Stop Actor
Used by the routine at ChooseVelocity.
Stops an actor moving and sets its timer to a random value between 8 and 15 which is how long it stays still for.
Input
IX Actor record
StopActor 42505 XOR A Stop the actor by clearing its X and Y velocities.
42506 LD (IX+6),A
42509 LD (IX+7),A
42512 LD A,(38549) Fetch the random seed from RandomNumber.
42515 AND %00000111 Keep only bits 0-2.
42517 OR %00001000 Set bit 3.
42519 LD (IX+2),A Set the velocity timer of the actor.
42522 RET Return.
Prev: 42497 Up: Map Next: 42523