From 084c2cc7f5ac281c7f8717aa1777d597cd8a07f3 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 26 Sep 2020 18:53:42 +0200 Subject: [PATCH] - fixed broken 'y' detection in Doom-style small fonts. --- src/common/fonts/font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/fonts/font.cpp b/src/common/fonts/font.cpp index c8964accfd6..a27e7f238b5 100644 --- a/src/common/fonts/font.cpp +++ b/src/common/fonts/font.cpp @@ -214,8 +214,8 @@ FFont::FFont (const char *name, const char *nametemplate, const char *filetempla // Because a lot of wads with their own font seem to foolishly // copy STCFN121 and make it a '|' themselves, wads must // provide STCFN120 (x) and STCFN122 (z) for STCFN121 to load as a 'y'. - FStringf c120("%s120", nametemplate); - FStringf c122("%s122", nametemplate); + FStringf c120(nametemplate, 120); + FStringf c122(nametemplate, 122); if (!TexMan.CheckForTexture(c120, ETextureType::MiscPatch).isValid() || !TexMan.CheckForTexture(c122, ETextureType::MiscPatch).isValid()) {