mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 13:01:56 +00:00
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:
parent
a798c43028
commit
34cb5192a7
1 changed files with 4 additions and 0 deletions
|
|
@ -4591,7 +4591,11 @@ void M_StartMessage(const char *string, void *routine,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i == strlen(message+start))
|
if (i == strlen(message+start))
|
||||||
|
{
|
||||||
start += i;
|
start += i;
|
||||||
|
if (i > max)
|
||||||
|
max = i;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MessageDef.x = (INT16)((BASEVIDWIDTH - 8*max-16)/2);
|
MessageDef.x = (INT16)((BASEVIDWIDTH - 8*max-16)/2);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue