From 3ff5e3f8cdba1a816a46cc167442d478189d93dc Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 15 Jun 2022 17:00:09 +0100 Subject: [PATCH] Fix an issue where if the last line of an M_StartMessage was the longest, the box width wouldn't account for it. --- src/m_menu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/m_menu.c b/src/m_menu.c index 09d0f393..b0738da3 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -4567,7 +4567,11 @@ void M_StartMessage(const char *string, void *routine, } if (i == strlen(message+start)) + { start += i; + if (i > max) + max = i; + } } MessageDef.x = (INT16)((BASEVIDWIDTH - 8*max-16)/2);