alphabetize earlier

This commit is contained in:
quaK 2023-02-10 12:47:51 +02:00
parent 7e5bf16111
commit 3c6e4de5c8

View File

@ -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<int>(matches.size()), dvars::con_inputHintBoxColor->current.vector);
const auto offset_value = floor((con.screen_max[0] - con.globals.x) / 4.f);