From 8e2194e163717ffc991a936d39b82772955dc2bc Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 3 Feb 2024 20:36:40 +0000 Subject: [PATCH] Fix timing of music on the title screen. This fixes #24 (thanks @NY00123). --- NEWS.md | 1 + src/swsound.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 5157d4b..8e5786e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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) diff --git a/src/swsound.c b/src/swsound.c index 1da8869..e367c1e 100644 --- a/src/swsound.c +++ b/src/swsound.c @@ -607,7 +607,7 @@ void swsndupdate(void) int thisclock = Timer_GetMS(); if (thisclock > lastclock + 1000 / 18.2) { - lastclock = thisclock; + lastclock += 1000 / 18.2; soundadj(); } }