From 9ba87895ae03ea177b6553cd67a7741d950367cc Mon Sep 17 00:00:00 2001 From: Joel Falcou Date: Fri, 17 Apr 2020 15:49:55 +0200 Subject: [PATCH] Fix issue with NPC/Quest text scrolling Scrolling text were abruptly closing while the audio played right. This patch fix a simple error on the scrolling loop so the corretc variable is used to make the scrolling happens --- Source/minitext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/minitext.cpp b/Source/minitext.cpp index 045ea7325..39835e293 100644 --- a/Source/minitext.cpp +++ b/Source/minitext.cpp @@ -168,7 +168,7 @@ void DrawQText() } } - for (currTime = SDL_GetTicks(); sgLastScroll + scrolltexty < currTime; sgLastScroll += scrolltexty) { + for (currTime = SDL_GetTicks(); qtextSpd + scrolltexty < currTime; qtextSpd += scrolltexty) { qtexty--; if (qtexty <= 209) { qtexty += 38;