From dd3062a61bbc6105f51d6f82a5392575e98245fa Mon Sep 17 00:00:00 2001 From: def Date: Sat, 13 Feb 2021 11:30:19 +0100 Subject: [PATCH] Use same warning text for both warnings so we only have to translate it once --- src/engine/client/graphics_threaded.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/client/graphics_threaded.cpp b/src/engine/client/graphics_threaded.cpp index fd1f0b511..0f18cab58 100644 --- a/src/engine/client/graphics_threaded.cpp +++ b/src/engine/client/graphics_threaded.cpp @@ -422,7 +422,7 @@ IGraphics::CTextureHandle CGraphics_Threaded::LoadTextureRaw(int Width, int Heig { str_format(aText, sizeof(aText), "\"%s\"", pTexName); } - str_format(NewWarning.m_aWarningMsg, sizeof(NewWarning.m_aWarningMsg), Localize("The width or height of texture %s is not divisible by 16, which might cause visual bugs."), aText); + str_format(NewWarning.m_aWarningMsg, sizeof(NewWarning.m_aWarningMsg), Localize("The width of texture %s is not divisible by %d, or the height is not divisible by %d, which might cause visual bugs."), aText, 16, 16); m_Warnings.emplace_back(NewWarning); }