From 3c6e4de5c8b59a34057c5ce5b8367696a79de039 Mon Sep 17 00:00:00 2001 From: quaK <38787176+Joelrau@users.noreply.github.com> Date: Fri, 10 Feb 2023 12:47:51 +0200 Subject: [PATCH] alphabetize earlier --- src/client/component/game_console.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/component/game_console.cpp b/src/client/component/game_console.cpp index 19f20327..3a1fc530 100644 --- a/src/client/component/game_console.cpp +++ b/src/client/component/game_console.cpp @@ -209,6 +209,8 @@ namespace game_console suggestions.push_back(input); } + std::sort(suggestions.begin(), suggestions.end()); // alphabetize sort + game::cmd_function_s* cmd = (*game::cmd_functions); while (cmd) { @@ -318,8 +320,6 @@ namespace game_console } else if (matches.size() > 1) { - std::sort(matches.begin(), matches.end()); // alphabetize sort - draw_hint_box(static_cast(matches.size()), dvars::con_inputHintBoxColor->current.vector); const auto offset_value = floor((con.screen_max[0] - con.globals.x) / 4.f);