Some fixes

This commit is contained in:
Federico Cecchetto 2021-12-21 15:43:51 +01:00
parent 5da497b61b
commit a39c18414c
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ namespace command
const auto current = game::Dvar_ValueToString(dvar, nullptr, &dvar->current); const auto current = game::Dvar_ValueToString(dvar, nullptr, &dvar->current);
const auto reset = game::Dvar_ValueToString(dvar, nullptr, &dvar->reset); const auto reset = game::Dvar_ValueToString(dvar, nullptr, &dvar->reset);
game_console::print(game_console::con_type_info, "\"%s\" is: \"%s\" default: \"%s\" hash: %i", game_console::print(game_console::con_type_info, "\"%s\" is: \"%s\" default: \"%s\" hash: 0x%08lX",
args[0], current, reset, dvar->name); args[0], current, reset, dvar->name);
game_console::print(game_console::con_type_info, " %s\n", game_console::print(game_console::con_type_info, " %s\n",

View File

@ -41,7 +41,7 @@ namespace gui_console
game_console::find_matches(text, matches, false); game_console::find_matches(text, matches, false);
} }
if (matches.size() == 1) if (matches.size() < 24)
{ {
const auto match = matches[0].data(); const auto match = matches[0].data();
data->DeleteChars(0, data->BufTextLen); data->DeleteChars(0, data->BufTextLen);