Prev: 35338 Up: Map Next: 35448
35382: MoveToRoom — action on a "move to:" destination row (2-6): set the actor's destination room from the row's value; in the ducts the destination comes from RoomAdjDucts by direction slot instead.
35382 LD A,64
35384 CALL 35814 set the actor's action timer
35387 LD (IX+3),1 action state = 1
35391 LD A,(31242)
35394 BIT 6,A in the duct network?
35396 JR NZ,35405
35398 LD A,(33685) no: destination = the row's room number
35401 LD (IX+2),A
35404 RET
35405 LD A,(33683) yes: duct direction = row - 2
35408 SUB 2
35410 PUSH AF
35411 LD A,(31242)
35414 AND 63
35416 LD L,A
35417 LD H,0
35419 PUSH HL
35420 ADD HL,HL
35421 ADD HL,HL
35422 POP DE
35423 ADD HL,DE room * 5
35424 LD DE,29346 + RoomAdjDucts
35427 ADD HL,DE
35428 POP AF
35429 LD D,0
35431 LD E,A
35432 ADD HL,DE + direction slot
35433 LD A,(HL)
35434 OR 64 destination stays inside the ducts
35436 LD (IX+2),A
35439 RET
QuitRoomView — action on the QUIT row (17): freeze the crew animation and return to the ship view.
35440 LD HL,31263
35443 SET 7,(HL)
35445 JP 31417
Prev: 35338 Up: Map Next: 35448