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 2022-06-15 17:00:09 +01:00
parent a798c43028
commit 34cb5192a7

View file

@ -4591,7 +4591,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);