Prev: 59454 Up: Map Next: 59494
59463: Graphic Layout Routine: (245) Set Next Graphic Index From Random List
Pick the next graphic-set index from the layout's random list.
GraphicLayoutRoutine_SetGraphicFromRandomList 59463 PUSH IX Stash IX on the stack.
59465 LD A,(IX+0) Fetch the current entity's type into A.
59468 CALL PseudoRandom Call PseudoRandom to pick a pseudo-random value.
59471 INC A Step the random-list index on by one.
59472 LD B,0 Load B with 0.
59474 LD C,A Keep the table index in C.
59475 ADD IX,BC IX+=BC.
59477 LD A,(IX+0) Fetch the current entity's type into A.
59480 POP IX Restore IX from the stack.
59482 LD C,(IX+0) Load C with the current entity's entity type.
59485 INC C Advance the saved count in C by one.
59486 ADD IX,BC IX+=BC.
59488 LD (IX+0),A Set the current entity's entity type.
59491 JP Process_GraphicLayoutData Jump to Process_GraphicLayoutData to process graphic layout data.
View the equivalent code in;
Prev: 59454 Up: Map Next: 59494