From 9f5556a2e4f2bc3b7867266a0c29d295f31caf48 Mon Sep 17 00:00:00 2001 From: laxa Date: Sun, 21 Sep 2014 14:38:34 +0200 Subject: [PATCH] Add buton for cl_reset_wanted_weapon_on_death --- src/game/client/components/menus_settings.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 1025a21f3..767b32489 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -1898,4 +1898,9 @@ void CMenus::RenderSettingsDDRace(CUIRect MainView) static float s_OffsetCode = 0.0f; DoEditBox(g_Config.m_ClDummyTimeoutCode, &Button, g_Config.m_ClDummyTimeoutCode, sizeof(g_Config.m_ClDummyTimeoutCode), 14.0f, &s_OffsetCode); } + Left.HSplitTop(20.0f, &Button, &Left); + if(DoButton_CheckBox(&g_Config.m_ClResetWantedWeaponOnDeath, Localize("Reset wanted weapon on death"), g_Config.m_ClResetWantedWeaponOnDeath, &Button)) + { + g_Config.m_ClResetWantedWeaponOnDeath ^= 1; + } }