Fix an issue where if the last line of an M_StartMessage was the longest, the box width wouldn't account for it.

This commit is contained in:
toaster committed 2022-06-15 17:00:09 +01:00
1 parent 3498f1cff1
commit 3ff5e3f8cd
1 file changed
+4
+4
View File
@@ -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);