mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-25 20:42:35 +00:00
Rob wanted hudnames that were less than 5 padded at the front. Whilst I tested it and didn't think it was a good idea, I'm committing the code anyways lest some fool wish to try it in future.
This commit is contained in:
parent
842c27e78b
commit
98095292d6
1 changed files with 11 additions and 0 deletions
|
|
@ -3014,6 +3014,17 @@ next_token:
|
|||
skin_cons_t[numskins].strvalue = skin->name;
|
||||
#endif
|
||||
|
||||
#ifdef SKINNAMEPADDING
|
||||
if ((size = strlen(skin->hudname)) < 5)
|
||||
{
|
||||
size_t offset = 5 - size;
|
||||
for (size++; size--;)
|
||||
skin->hudname[size+offset] = skin->hudname[size];
|
||||
while (offset--)
|
||||
skin->hudname[offset] = ' ';
|
||||
}
|
||||
#endif
|
||||
|
||||
// add face graphics
|
||||
ST_LoadFaceGraphics(skin->face, skin->superface, numskins);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue