Prev: C95A Up: Map Next: C978
C965: Initialize train for the current room
Used by the routine at A89D.
C965 LD A,($A045) Return if generating train in current room
C968 OR A
C969 RET NZ
C96A LD A,(HL) Set A048 to the timer value for train to appears
C96B LD ($A048),A
C96E INC HL Increment address to train data definition
C96F LD ($A046),HL Set A046 to the new address
C972 LD A,$01 Set variable to train is generating in current room
C974 LD ($A045),A
C977 RET
Prev: C95A Up: Map Next: C978