Action_b |
A25C |
LD IX,(Actor_CurrentPtr) |
|
A260 |
CALL _a140 |
|
A263 |
LD A,($5BFB) |
|
A266 |
AND A |
|
A267 |
JP Z,Action_g_0 |
|
A26A |
LD A,(Flag_DoorEntry) |
|
A26D |
AND A |
|
A26E |
RET NZ |
|
A26F |
LD A,(Event_NumDoors) |
|
A272 |
AND A |
|
A273 |
RET NZ |
|
A274 |
BIT 1,(IX+$13) |
|
A278 |
JR NZ,Action_b_0 |
|
A27A |
CALL Actor_CreateDoorEvent |
|
A27D |
XOR A |
|
A27E |
LD (IX+$0C),A |
|
A281 |
LD A,(Temp_DirCompass) |
|
A284 |
LD L,A |
|
A285 |
LD H,$00 |
|
A287 |
ADD HL,HL |
|
A288 |
ADD HL,HL |
|
A289 |
LD DE,Exit_coords |
|
A28C |
ADD HL,DE |
|
A28D |
LD DE,People_TempCoordNS |
|
A290 |
LD BC,$0004 |
|
A293 |
LDIR |
|
A295 |
XOR $02 |
|
A297 |
LD (Temp_DirCompass),A |
|
A29A |
CALL Actor_CreateDoorEvent |
|
A29D |
LD (IX+$02),$93 |
|
A2A1 |
LD A,($5BFB) |
|
A2A4 |
LD (IX+$0C),A |
|
A2A7 |
LD IX,(Actor_CurrentPtr) |
Action_b_0 |
A2AB |
INC (IX+$16) |
|
A2AE |
LD (IX+$0D),$08 |
|
A2B2 |
RET |