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:
1 parent
3498f1cff1
commit
3ff5e3f8cd
1 file changed
+4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user