Merge pull request #1190 from ChillerDragon/DummyButton

Better button id for dummy settings (thanks to deen)
This commit is contained in:
Dennis Felsing 2018-07-06 11:43:08 +02:00 committed by GitHub
commit 394457c219
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -295,7 +295,7 @@ void CMenus::RenderSettingsPlayer(CUIRect MainView)
m_NeedSendinfo = true;
}
if(DoButton_CheckBox(&g_Config.m_ClShowKillMessages, Localize("Dummy settings"), m_Dummy, &Dummy))
if(DoButton_CheckBox(&m_Dummy, Localize("Dummy settings"), m_Dummy, &Dummy))
{
m_Dummy ^= 1;
}
@ -412,7 +412,7 @@ void CMenus::RenderSettingsTee(CUIRect MainView)
Dummy.HSplitTop(20.0f, &DummyLabel, &Dummy);
if(DoButton_CheckBox(&g_Config.m_ClShowKillMessages, Localize("Dummy settings"), m_Dummy, &DummyLabel))
if(DoButton_CheckBox(&m_Dummy, Localize("Dummy settings"), m_Dummy, &DummyLabel))
{
m_Dummy ^= 1;
}