Prev: 27886 Up: Map Next: 27909
27888: Make a character stand up if he's not already standing
Used by the routine at 25534 to make sure a character is standing up before setting off for his destination.
Input
H Character number (152-169)
27888 LD L,99 Change the primary command routine address in bytes 99 and 100 of the character's buffer to 25553
27890 LD (HL),209
27892 LD L,96 Point HL at the character's animatory state
27894 LD A,(HL) Pick this up in A
27895 AND 7 Keep only bits 0-2
27897 CP 4 Is the character standing?
27899 RET C Return if so
27900 POP DE Drop the return address (25553) from the stack
27901 CALL 25108 Update the SRB for the character's current animatory state
27904 AND 248 A=animatory state of the character standing up
27906 JP 25008 Update the character's animatory state and update the SRB
Prev: 27886 Up: Map Next: 27909