Skip to content

Commit

Permalink
Fix timing of music on the title screen.
Browse files Browse the repository at this point in the history
This fixes #24 (thanks @NY00123).
  • Loading branch information
fragglet committed Feb 3, 2024
1 parent 61eb0e0 commit 8e2194e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* An input bug was fixed where a backspace would leave some visual
corruption, and the cursor now blinks.
* A bug was fixed where the same medal could be awarded twice.
* Timing of music on the title screen was fixed (thanks @NY00123).

# v 2.3.0 (2023-05-20)

Expand Down
2 changes: 1 addition & 1 deletion src/swsound.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ void swsndupdate(void)
int thisclock = Timer_GetMS();

if (thisclock > lastclock + 1000 / 18.2) {
lastclock = thisclock;
lastclock += 1000 / 18.2;
soundadj();
}
}
Expand Down

0 comments on commit 8e2194e

Please sign in to comment.