From b2b1ecc11ff3eff6ed4b3f918a11e768b7f1d2a5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 25 May 2020 21:16:36 +0200 Subject: [PATCH] - Single image fonts do not use translations. --- src/common/fonts/v_font.cpp | 1 - src/common/textures/gametexture.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/fonts/v_font.cpp b/src/common/fonts/v_font.cpp index 50db74074..3f64b1625 100644 --- a/src/common/fonts/v_font.cpp +++ b/src/common/fonts/v_font.cpp @@ -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; } } diff --git a/src/common/textures/gametexture.cpp b/src/common/textures/gametexture.cpp index caf5d4357..3ab74a5c3 100644 --- a/src/common/textures/gametexture.cpp +++ b/src/common/textures/gametexture.cpp @@ -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); }