Prev: 45522 Up: Map Next: 45584
45552: Display "[Character] IS ASLEEP" window and jump to main game loop if current character is asleep, else return
Used by the routines at 43199, 43250, 43318, 43428 and 44933.
Output
A Zero if character is awake
45552 PUSH HL Store HL
45553 LD A,(41937) Load A with index of Current Character
45556 LD E,6 Point HL at character's flags...
45558 CALL 45406 ...
45561 BIT 7,(HL) If character is awake...
45563 JR Z,45581 ...then skip ahead to 45581
45565 LD A,25 Draw window 25...
45567 CALL 47193 ...
45570 LD HL,50937 Point HL at "[Current Character's short name] IS ASLEEP" text
45573 CALL 46902 ...and print to screen
45576 POP HL Restore HL
45577 POP HL Remove value from top of stack as we are not returning
45578 JP 41739 Display "PRESS FIRE TO CONTINUE" window and wait for input and return to main game loop
45581 POP HL Restore HL
45582 XOR A Set A to zero
45583 RET Return
Prev: 45522 Up: Map Next: 45584