Skip to content

Commit

Permalink
- fixed broken 'y' detection in Doom-style small fonts.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Sep 26, 2020
1 parent 2ffb447 commit 084c2cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/fonts/font.cpp
Expand Up @@ -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())
{
Expand Down

0 comments on commit 084c2cc

Please sign in to comment.