From a39c18414c6cac50ee583617960c459d2247ca54 Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Tue, 21 Dec 2021 15:43:51 +0100 Subject: [PATCH] Some fixes --- src/client/component/command.cpp | 2 +- src/client/component/gui_console.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/component/command.cpp b/src/client/component/command.cpp index da034395..7c350c0a 100644 --- a/src/client/component/command.cpp +++ b/src/client/component/command.cpp @@ -58,7 +58,7 @@ namespace command const auto current = game::Dvar_ValueToString(dvar, nullptr, &dvar->current); 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); game_console::print(game_console::con_type_info, " %s\n", diff --git a/src/client/component/gui_console.cpp b/src/client/component/gui_console.cpp index 1ac281fb..5bf2bf7b 100644 --- a/src/client/component/gui_console.cpp +++ b/src/client/component/gui_console.cpp @@ -41,7 +41,7 @@ namespace gui_console game_console::find_matches(text, matches, false); } - if (matches.size() == 1) + if (matches.size() < 24) { const auto match = matches[0].data(); data->DeleteChars(0, data->BufTextLen);