alphabetize earlier
This commit is contained in:
parent
7e5bf16111
commit
3c6e4de5c8
@ -209,6 +209,8 @@ namespace game_console
|
|||||||
suggestions.push_back(input);
|
suggestions.push_back(input);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::sort(suggestions.begin(), suggestions.end()); // alphabetize sort
|
||||||
|
|
||||||
game::cmd_function_s* cmd = (*game::cmd_functions);
|
game::cmd_function_s* cmd = (*game::cmd_functions);
|
||||||
while (cmd)
|
while (cmd)
|
||||||
{
|
{
|
||||||
@ -318,8 +320,6 @@ namespace game_console
|
|||||||
}
|
}
|
||||||
else if (matches.size() > 1)
|
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);
|
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);
|
const auto offset_value = floor((con.screen_max[0] - con.globals.x) / 4.f);
|
||||||
|
Loading…
Reference in New Issue
Block a user