From 37fe43d4260e5359609be55e982ebcb5ac64fa86 Mon Sep 17 00:00:00 2001 From: fed <58637860+fedddddd@users.noreply.github.com> Date: Thu, 3 Mar 2022 12:51:02 +0100 Subject: [PATCH] Game console fixes --- src/client/component/game_console.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/client/component/game_console.cpp b/src/client/component/game_console.cpp index 289a07a8..cf7c3056 100644 --- a/src/client/component/game_console.cpp +++ b/src/client/component/game_console.cpp @@ -59,7 +59,7 @@ namespace game_console std::vector matches{}; float color_white[4] = {1.0f, 1.0f, 1.0f, 1.0f}; - float color_title[4] = {0.9f, 0.9f, 0.5f, 1.0f}; + float color_title[4] = {0.25f, 0.62f, 0.3f, 1.0f}; void clear() { @@ -453,11 +453,19 @@ namespace game_console bool console_char_event(const int local_client_num, const int key) { - if (key == game::keyNum_t::K_GRAVE || key == game::keyNum_t::K_TILDE) + if (key == game::keyNum_t::K_GRAVE || + key == game::keyNum_t::K_TILDE || + key == '|' || + key == '\\') { return false; } + if (key > 127) + { + return true; + } + if (*game::keyCatchers & 1) { if (key == game::keyNum_t::K_TAB) // tab (auto complete)