Prev: 46897 Up: Map Next: 47016
46981: Collect Bomb
On action, mark the bomb carried and play SoundsTakeObject.
Input
IX Actor slot
On action, mark the bomb carried and play SoundsTakeObject.
CollectBomb 46981 CALL TestActionKey Call TestActionKey.
46984 JR NZ,CollectBomb_TestRange Jump to CollectBomb_TestRange if action is pressed.
46986 RES 7,(IX+8) Reset bit 7 of the actor flags.
Mark the bomb as carried if Jetman can collect it.
CollectBomb_TestRange 46990 CALL TestJetmanAction Call TestJetmanAction.
46993 JR NC,CollectBomb_Loop Jump to CollectBomb_Loop if Jetman cannot collect it.
46995 LD (IX+8),129 Write 129 to the actor flags.
46999 LD A,(24704) Fetch Jetman_Flags.
47002 OR %00000001 Set bit 0.
47004 LD (24704),A Write it back.
47007 CALL SoundsTakeObject Call SoundsTakeObject.
This entry point is used by the routines at CarryBomb and FlyThrownBomb.
CollectBomb_Loop 47010 CALL Handler_Bomb Call Handler_Bomb.
47013 JP DrawCurrentActor_Draw Jump to DrawCurrentActor_Draw.
Prev: 46897 Up: Map Next: 47016