Change "Set Ping" message

This commit is contained in:
def 2013-12-18 17:01:39 +01:00
parent c6cca39ace
commit e2efec67ec

View file

@ -1117,8 +1117,8 @@ void CMenus::RenderSettingsDDRace(CUIRect MainView)
char aBuf[64]; char aBuf[64];
str_format(aBuf, sizeof(aBuf), "%d", g_Config.m_ClSetPing); str_format(aBuf, sizeof(aBuf), "%d", g_Config.m_ClSetPing);
MainView.HSplitTop(20.0f, &Button, &MainView); MainView.HSplitTop(20.0f, &Button, &MainView);
UI()->DoLabelScaled(&Button, Localize("Set Ping"), 14.0f, -1); UI()->DoLabelScaled(&Button, Localize("Set Ping (increase prediction)"), 14.0f, -1);
Button.VSplitLeft(190.0f, 0, &Button); Button.VSplitLeft(300.0f, 0, &Button);
static float Offset = 0.0f; static float Offset = 0.0f;
DoEditBox(&g_Config.m_ClSetPing, &Button, aBuf, sizeof(aBuf), 14.0f, &Offset); DoEditBox(&g_Config.m_ClSetPing, &Button, aBuf, sizeof(aBuf), 14.0f, &Offset);
g_Config.m_ClSetPing = min(900, max(0, str_toint(aBuf))); g_Config.m_ClSetPing = min(900, max(0, str_toint(aBuf)));