- fixed character position assignment for multi-lump fonts

https://forum.zdoom.org/viewtopic.php?t=64741#p1104427
This commit is contained in:
alexey.lysiuk 2019-05-25 13:16:39 +03:00
parent 57a0a4c066
commit 688f130af6

View file

@ -194,7 +194,7 @@ FFont::FFont (const char *name, const char *nametemplate, const char *filetempla
{ {
for (i = 0; i < lcount; i++) for (i = 0; i < lcount; i++)
{ {
int position = '!' + i; int position = lfirst + i;
mysnprintf(buffer, countof(buffer), nametemplate, i + start); mysnprintf(buffer, countof(buffer), nametemplate, i + start);
lump = TexMan.CheckForTexture(buffer, ETextureType::MiscPatch); lump = TexMan.CheckForTexture(buffer, ETextureType::MiscPatch);
@ -253,7 +253,7 @@ FFont::FFont (const char *name, const char *nametemplate, const char *filetempla
{ {
if (texs[i]) if (texs[i])
{ {
int position = '!' + i; int position = lfirst + i;
Type = Multilump; Type = Multilump;
if (position < minchar) minchar = position; if (position < minchar) minchar = position;
if (position > maxchar) maxchar = position; if (position > maxchar) maxchar = position;