Skip to content

Commit

Permalink
[MY] Fix annoying continuous beep when the game ends
Browse files Browse the repository at this point in the history
It still has a longish beep, but once the screen is finished with drawing, it stops.
  • Loading branch information
TheFakeMontyOnTheRun committed Jul 1, 2024
1 parent a24763a commit e376830
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion my_frontend/src/UI.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ void performAction(void) {
clearScreen();
drawTextWindow( 0, (YRES / 8) + 1, (XRES_FRAMEBUFFER / 8) - 1, lines + 1, "", msg);

while (1);
while (1) {
if (soundDriver != kNoSound) {
soundTick();
}
}
}
}

Expand Down

0 comments on commit e376830

Please sign in to comment.