Prev: 40042 Up: Map Next: 40069
40055: Execute Character Action
Used by the routine at Game_Initialisation.
Runs the action looked up for this character and then returns at once when that character has no action.
Input
IY Character timetable pointer
ExecuteCharacterAction 40055 CALL Handler_FindCharacterAction Return if Handler_FindCharacterAction finds no character action.
40058 RET Z
40059 LD L,(IX+1) Read the action handler for this character.
40062 LD H,(IX+2)
40065 LD A,L See whether the pointer is empty.
40066 OR H
40067 RET Z Return if the action handler address is empty.
40068 JP (HL) Jump to the action handler.
Prev: 40042 Up: Map Next: 40069