From bf02e0710b8d0f004e60641e0debc6214ce544d2 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Mon, 25 Jan 2021 04:26:36 +0100 Subject: [PATCH] Fix calculating text speed for text containing line breaks --- Source/minitext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/minitext.cpp b/Source/minitext.cpp index 7de293bee..558e4c63e 100644 --- a/Source/minitext.cpp +++ b/Source/minitext.cpp @@ -109,6 +109,8 @@ int GetLinesInText(const char *text) while (!doneflag) { doneflag = BuildLine(text, line); text += strlen(line); + if (*text == '\n') + text++; lines++; }