Use same warning text for both warnings

so we only have to translate it once
This commit is contained in:
def 2021-02-13 11:30:19 +01:00
parent 2a87814d84
commit dd3062a61b

View file

@ -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);
}