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:
toasterbabe 2017-03-18 17:02:34 +00:00
parent 842c27e78b
commit 98095292d6

View file

@ -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);