Attempt to keep messagebox from double speaking.

This commit is contained in:
Storm Dragon 2025-02-01 14:53:55 -05:00
parent b5b472eebe
commit c5406d5089

View File

@ -421,6 +421,7 @@ def display_text(text):
def messagebox(text): def messagebox(text):
while True: while True:
if event.key == pygame.K_UP: continue
speak(text + "\nPress any key to repeat or enter to continue.") speak(text + "\nPress any key to repeat or enter to continue.")
event = pygame.event.wait() event = pygame.event.wait()
if event.type == pygame.KEYDOWN: if event.type == pygame.KEYDOWN: