mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
V_LevelNameHeight: Don't use strlen for possibly every iteration depending on optimisation level
This commit is contained in:
parent
9e4e996a5e
commit
e3ee8f9afa
1 changed files with 1 additions and 1 deletions
|
|
@ -2987,7 +2987,7 @@ INT32 V_LevelNameHeight(const char *string)
|
||||||
INT32 c, w = 0;
|
INT32 c, w = 0;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
for (i = 0; i < strlen(string); i++)
|
for (i = 0; string[i]; i++)
|
||||||
{
|
{
|
||||||
c = string[i] - LT_FONTSTART;
|
c = string[i] - LT_FONTSTART;
|
||||||
if (c < 0 || c >= LT_FONTSIZE || !fontv[LT_FONT].font[c])
|
if (c < 0 || c >= LT_FONTSIZE || !fontv[LT_FONT].font[c])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue