Skip to content

Commit

Permalink
Fix max indicator distance setting
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrc6 committed Nov 27, 2024
1 parent 1c671e3 commit b591f06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/game/client/components/menus_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3488,9 +3488,7 @@ void CMenus::RenderSettingsTClient(CUIRect MainView)
Column.HSplitTop(LineSize, &Button, &Column);
Ui()->DoScrollbarOption(&g_Config.m_ClIndicatorOffsetMax, &g_Config.m_ClIndicatorOffsetMax, &Button, Localize("Indicator max offset"), 16, 200);
Column.HSplitTop(LineSize, &Button, &Column);
int Value = g_Config.m_ClIndicatorMaxDistance * 50;
Ui()->DoScrollbarOption(&g_Config.m_ClIndicatorMaxDistance, &Value, &Button, Localize("Indicator max distance"), 500, 7000);
g_Config.m_ClIndicatorMaxDistance = Value / 50;
Ui()->DoScrollbarOption(&g_Config.m_ClIndicatorMaxDistance, &g_Config.m_ClIndicatorMaxDistance, &Button, Localize("Indicator max distance"), 500, 7000);
}
else
{
Expand Down

0 comments on commit b591f06

Please sign in to comment.