diff --git a/src/engine/console.h b/src/engine/console.h index 464c16348..ecbd80660 100644 --- a/src/engine/console.h +++ b/src/engine/console.h @@ -34,8 +34,6 @@ public: TEMPCMD_HELP_LENGTH = 192, TEMPCMD_PARAMS_LENGTH = 96, - MAX_PRINT_CB = 4, - CLIENT_ID_GAME = -2, CLIENT_ID_NO_GAME = -3, }; diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp index 3e067ed30..f6458dc53 100644 --- a/src/game/client/components/console.cpp +++ b/src/game/client/components/console.cpp @@ -254,11 +254,11 @@ bool CGameConsole::CInstance::OnInput(const IInput::CEvent &Event) { char *pEntry = m_History.Allocate(m_Input.GetLength() + 1); str_copy(pEntry, m_Input.GetString(), m_Input.GetLength() + 1); - // print out the user's commands before they get run - char aBuf[256]; - str_format(aBuf, sizeof(aBuf), "> %s", m_Input.GetString()); - m_pGameConsole->PrintLine(m_Type, aBuf); } + // print out the user's commands before they get run + char aBuf[256]; + str_format(aBuf, sizeof(aBuf), "> %s", m_Input.GetString()); + m_pGameConsole->PrintLine(m_Type, aBuf); } ExecuteLine(m_Input.GetString()); m_Input.Clear();