Rermove Localize from server message

This commit is contained in:
savander 2015-06-26 21:39:36 +02:00
parent 9a3ab61b9e
commit a65243d8e9

View file

@ -1312,11 +1312,11 @@ void CMenus::RenderSettingsHUD(CUIRect MainView)
char name[16]; char name[16];
str_copy(name, g_Config.m_PlayerName, sizeof(name)); str_copy(name, g_Config.m_PlayerName, sizeof(name));
str_format(aBuf, sizeof(aBuf), Localize("*** '%s' entered and joined the spectators"), name); str_format(aBuf, sizeof(aBuf), "*** '%s' entered and joined the spectators", name);
while (TextRender()->TextWidth(0, 12.0f, aBuf, -1) > Label.w) while (TextRender()->TextWidth(0, 12.0f, aBuf, -1) > Label.w)
{ {
name[str_length(name) - 1] = 0; name[str_length(name) - 1] = 0;
str_format(aBuf, sizeof(aBuf), Localize("*** '%s' entered and joined the spectators"), name); str_format(aBuf, sizeof(aBuf), "*** '%s' entered and joined the spectators", name);
} }
UI()->DoLabelScaled(&Label, aBuf, 12.0f, -1); UI()->DoLabelScaled(&Label, aBuf, 12.0f, -1);
TextRender()->TextColor(1.0f, 1.0f, 1.0f, 1.0f); TextRender()->TextColor(1.0f, 1.0f, 1.0f, 1.0f);