From 3af9f5d3618177af03b2e73c7ab97f4ac76eeb84 Mon Sep 17 00:00:00 2001 From: Tater Date: Thu, 21 Nov 2024 03:32:02 -0600 Subject: [PATCH] fix build warnings --- src/game/client/components/bindwheel.cpp | 4 ++-- src/game/client/components/menus_settings.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game/client/components/bindwheel.cpp b/src/game/client/components/bindwheel.cpp index 9fdb4d982d4..18933653312 100644 --- a/src/game/client/components/bindwheel.cpp +++ b/src/game/client/components/bindwheel.cpp @@ -31,7 +31,7 @@ void CBindWheel::ConOpenBindwheel(IConsole::IResult *pResult, void *pUserData) void CBindWheel::ConAddBindwheel_Legacy(IConsole::IResult *pResult, void *pUserData) { - int Bindpos_Legacy = pResult->GetInteger(0); + //int Bindpos_Legacy = pResult->GetInteger(0); const char *aName = pResult->GetString(1); const char *aCommand = pResult->GetString(2); @@ -65,7 +65,7 @@ void CBindWheel::ConRemoveAllBinds(IConsole::IResult *pResult, void *pUserData) void CBindWheel::AddBind(const char *pName, const char *pCommand) { - if(pName[0] == 0 && pCommand[0] == 0 || m_vBinds.size() > MAX_BINDS) + if((pName[0] == 0 && pCommand[0] == 0) || m_vBinds.size() > MAX_BINDS) return; // Don't allow duplicates diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 04dd39609d3..bbdd9c7ab0e 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -3638,7 +3638,6 @@ void CMenus::RenderSettingsTClient(CUIRect MainView) const float Radius = 190.0f; vec2 Pos{Screen.w / 2.0f - 55.0f, Screen.h / 2.0f}; - CUIRect CircleRect; Pos = vec2(MainView.x + MainView.w / 1.5f, MainView.y + MainView.h / 2.0f); // Draw Circle Graphics()->TextureClear();