Skip to content

Commit

Permalink
[Shared] Fix CFontInfo::m_isVariant not getting initialized for non-v…
Browse files Browse the repository at this point in the history
…ariant fonts.

This fixes r_reloadfonts in SP.
  • Loading branch information
Daggolin committed Apr 7, 2024
1 parent a7855ce commit 3909676
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/rd-common/tr_font.cpp
Expand Up @@ -1019,6 +1019,7 @@ CFontInfo::CFontInfo(const char *_fontName)
m_fAltSBCSFontScaleFactor = -1;
#endif
m_bIsFakeAlienLanguage = !strcmp(_fontName,"aurabesh"); // dont try and make SBCS or asian overrides for this
m_isVariant = qfalse;

len = ri.FS_ReadFile(fontName, NULL);
if (len == sizeof(dfontdat_t))
Expand Down
1 change: 1 addition & 0 deletions codemp/rd-common/tr_font.cpp
Expand Up @@ -882,6 +882,7 @@ CFontInfo::CFontInfo(const char *_fontName)
m_iOriginalFontWhenSBCSOverriden = -1;
m_fAltSBCSFontScaleFactor = -1;
m_bIsFakeAlienLanguage = !strcmp(_fontName,"aurabesh"); // dont try and make SBCS or asian overrides for this
m_isVariant = qfalse;

len = ri.FS_ReadFile(fontName, NULL);
if (len == sizeof(dfontdat_t))
Expand Down

0 comments on commit 3909676

Please sign in to comment.