From 688f130af633c4241424ec2e4b50f7b322d49f9e Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 25 May 2019 13:16:39 +0300 Subject: [PATCH] - fixed character position assignment for multi-lump fonts https://forum.zdoom.org/viewtopic.php?t=64741#p1104427 --- src/gamedata/fonts/font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gamedata/fonts/font.cpp b/src/gamedata/fonts/font.cpp index da8fd25ee..09423933f 100644 --- a/src/gamedata/fonts/font.cpp +++ b/src/gamedata/fonts/font.cpp @@ -194,7 +194,7 @@ FFont::FFont (const char *name, const char *nametemplate, const char *filetempla { for (i = 0; i < lcount; i++) { - int position = '!' + i; + int position = lfirst + i; mysnprintf(buffer, countof(buffer), nametemplate, i + start); lump = TexMan.CheckForTexture(buffer, ETextureType::MiscPatch); @@ -253,7 +253,7 @@ FFont::FFont (const char *name, const char *nametemplate, const char *filetempla { if (texs[i]) { - int position = '!' + i; + int position = lfirst + i; Type = Multilump; if (position < minchar) minchar = position; if (position > maxchar) maxchar = position;