From 445929fac9a77002e9225648c3683f1f1c714349 Mon Sep 17 00:00:00 2001 From: toaster Date: Tue, 11 Jul 2023 15:56:15 +0100 Subject: [PATCH] Whitespace at the end of a line should NOT be counted when getting V_StringScaledWidth Second guessed this change over lunch --- src/v_video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v_video.cpp b/src/v_video.cpp index cc21a2303..e088d662b 100644 --- a/src/v_video.cpp +++ b/src/v_video.cpp @@ -2605,7 +2605,7 @@ fixed_t V_StringScaledWidth( cx += cw; } else - right = (cx += fontspec.spacew); + cx += fontspec.spacew; } fullwidth = std::max(right, std::max(cx, fullwidth)); @@ -2728,7 +2728,7 @@ void V_ScaledWordWrap( } else { - right = (cx += fontspec.spacew); + cx += fontspec.spacew; cxatstart = cx; start = i; }