Prev: 40518 Up: Map Next: 40582
40557: Update Dome Entity
Updates an entity of the type 6 which rises by one unit of its third coordinate on every frame until the countdown in field 35 reaches zero, when it is freed.
Input
IX The entity
UpdateDomeEntity 40557 CALL IncreaseEntityCounter Call IncreaseEntityCounter.
40560 DEC (IX+35) Decrease field 35 of the entity by one.
40563 JP Z,FreeEntity Jump to FreeEntity to free the entity if it is zero.
40566 LD H,(IX+8) Fetch the first byte of the third coordinate of the entity.
40569 LD L,(IX+9) Fetch the second byte of the third coordinate of the entity.
40572 INC HL Add one.
40573 LD (IX+8),H Store the first byte of the third coordinate of the entity.
40576 LD (IX+9),L Store the second byte of the third coordinate of the entity.
40579 JP UpdateEntity_Project Jump to UpdateEntity_Project to carry on updating the entity.
Prev: 40518 Up: Map Next: 40582