- Single image fonts do not use translations.

This commit is contained in:
Christoph Oelckers 2020-05-25 21:16:36 +02:00
parent 29344006a0
commit b2b1ecc11f
2 changed files with 2 additions and 3 deletions

View file

@ -152,7 +152,6 @@ FFont *V_GetFont(const char *name, const char *fontlumpname)
{
FFont *CreateSinglePicFont(const char *name);
font = CreateSinglePicFont (name);
if (translationsLoaded) font->LoadTranslations();
return font;
}
}

View file

@ -443,7 +443,7 @@ float FTexCoordInfo::RowOffset(float rowoffset) const
float FTexCoordInfo::TextureOffset(float textureoffset) const
{
float scale = fabs(mScale.X);
float scale = fabsf(mScale.X);
if (scale == 1.f || mWorldPanning) return textureoffset;
else return textureoffset / scale;
}
@ -458,7 +458,7 @@ float FTexCoordInfo::TextureAdjustWidth() const
{
if (mWorldPanning)
{
float tscale = fabs(mTempScale.X);
float tscale = fabsf(mTempScale.X);
if (tscale == 1.f) return (float)mRenderWidth;
else return mWidth / fabs(tscale);
}