| Prev: 7627 | Up: Map | Next: 7649 |
762E: Remove an object from the viewport array.
|
Clears the object's slot marker and handles tank shell cleanup if the object was a tank.
|
||||||||||
| remove_object_from_viewport | 762E | DEC HL | Decrement to definition byte and mark slot as empty. | |||||||
| 762F | LD (HL),$00 | |||||||||
| 7631 | LD A,D | Extract object type. If not OBJECT_TANK, continue main loop. | ||||||||
| 7632 | AND $07 | |||||||||
| 7634 | CP $04 | |||||||||
| 7636 | JP NZ,operate_viewport_slots | |||||||||
| 7639 | LD A,$00 | Mark tank shell as inactive. | ||||||||
| 763B | LD ($5EF2),A | |||||||||
| 763E | BIT 5,D | Check if tank was on right bank. | ||||||||
| 7640 | JP Z,operate_viewport_slots | |||||||||
| 7643 | CALL remove_tank_shell | If so, call remove_tank_shell for right-bank tank shell removal. | ||||||||
| 7646 | JP operate_viewport_slots | |||||||||
| Prev: 7627 | Up: Map | Next: 7649 |