Prev: 40333 Up: Map Next: 40384
40349: Update Disc Entity
Updates an entity of the type 12 in the same way as UpdateSpiderEntity but with a different value to test.
Input
IX The entity
UpdateDiscEntity 40349 LD BC,24 Set the value to test to 24.
40352 CALL TestEntityVisible Call TestEntityVisible.
40355 JR Z,FreeLinkedEntity Jump to FreeLinkedEntity if the zero flag is set.
40357 CALL ProjectEntity Call ProjectEntity.
40360 JP UpdateEntity_Done Jump to UpdateEntity_Done.
This entry point is used by the routine at UpdateSpiderEntity.
Frees an entity, and resets bit 7 of the third byte of the record that field 26 of the entity points to.
FreeLinkedEntity 40363 LD (IX+0),0 Set the type of the entity to 0 to free it.
40367 LD H,(IX+26) Fetch the first byte of the address of the record from field 26.
40370 LD L,(IX+27) Fetch the second byte of the address of the record from field 27.
40373 INC HL Move onto the second byte of the record.
40374 INC HL Move onto the third byte of the record.
40375 RES 7,(HL) Reset bit 7 of the third byte of the record.
40377 LD (IX+1),128 Set the frame of the entity to 128 to hide it.
40381 JP UpdateEntity_Done Jump to UpdateEntity_Done.
Prev: 40333 Up: Map Next: 40384