Prev: 31578 Up: Map Next: 31594
31580: Deal with a character who is standing next to the jail cell door
Used by the routine at 60347. Deals with a character who is standing just behind the jail cell door and trying to move right. If the character is Sam, this routine prevents him from escaping from the jail cell while he's imprisoned there.
Input
H Character number (215-230)
31580 LD A,H A=character number
31581 CP 230 Are we dealing with Sam?
31583 JP NZ,60423 Jump back into the calling routine if not (and allow the character to move right)
31586 LD A,(32747) Collect the police flags from 32747
31589 RLCA Is Sam in jail?
31590 JP NC,60423 Jump back into the calling routine if not (and allow Sam to move right)
31593 RET
Prev: 31578 Up: Map Next: 31594