| Routines

60506: Move a character from the midstride or mid-action position and update the SRB

Used by the routines at 29149, 60539, 62892, 62926 and 63128. Updates the character's animatory state and location, and updates the screen refresh buffer (SRB) accordingly.
Input
H | Character number (215-230)
60506 | CALL 59848 | Update the SRB for the character's current animatory state and location
60509 | LD L,5 | Point HL at byte 5 of the character's buffer
60511 | LD A,(HL) | A=character's post-midstride/post-action animatory state
60512 | INC L | Collect the character's post-midstride/post-action coordinates in DE from bytes 6 and 7 of his buffer
60513 | LD E,(HL)
60514 | INC L
60515 | LD D,(HL)
60516 | LD (HL),0 | Set byte 7 of the character's buffer to 0 (to indicate that he is neither midstride nor mid-action now)
60518 | JP 59861 | Update the character's animatory state and location and update the SRB