mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-28 16:31:15 +00:00
M_StringHeight: Handle correct height more cleanly
This commit is contained in:
parent
12ff436877
commit
3b272ddb97
1 changed files with 3 additions and 3 deletions
|
|
@ -14,11 +14,11 @@ struct menumessage_s menumessage;
|
|||
//
|
||||
static inline size_t M_StringHeight(const char *string)
|
||||
{
|
||||
size_t h = 8, i, len = strlen(string);
|
||||
size_t h = 16, i, len = strlen(string);
|
||||
|
||||
for (i = 0; i < len; i++)
|
||||
for (i = 0; i < len-1; i++)
|
||||
{
|
||||
if (string[i] != '\n' && i != len-1)
|
||||
if (string[i] != '\n')
|
||||
continue;
|
||||
h += 8;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue