diff options
| author | oy <Tom_Adams@web.de> | 2011-06-09 23:40:35 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-06-09 23:40:35 +0200 |
| commit | 37bdc4c2a165d606549b395779e7e308e1647388 (patch) | |
| tree | 09951744a3122a8e6848272e470e2c13d0cf3518 /src/game/client/components | |
| parent | 4f402f85bbe3b4e9f69e3bcf5ca63d9b100d77de (diff) | |
| download | zcatch-37bdc4c2a165d606549b395779e7e308e1647388.tar.gz zcatch-37bdc4c2a165d606549b395779e7e308e1647388.zip | |
removed some unneeded stuff
Diffstat (limited to 'src/game/client/components')
| -rw-r--r-- | src/game/client/components/chat.cpp | 12 | ||||
| -rw-r--r-- | src/game/client/components/console.cpp | 12 |
2 files changed, 4 insertions, 20 deletions
diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp index c8d09ba8..5f897ece 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -210,11 +210,7 @@ bool CChat::OnInput(IInput::CEvent Event) m_pHistoryEntry = m_History.Last(); if (m_pHistoryEntry) - { - unsigned int Len = str_length(m_pHistoryEntry); - if (Len < sizeof(m_Input) - 1) // TODO: WTF? - m_Input.Set(m_pHistoryEntry); - } + m_Input.Set(m_pHistoryEntry); } else if (Event.m_Flags&IInput::FLAG_PRESS && Event.m_Key == KEY_DOWN) { @@ -222,11 +218,7 @@ bool CChat::OnInput(IInput::CEvent Event) m_pHistoryEntry = m_History.Next(m_pHistoryEntry); if (m_pHistoryEntry) - { - unsigned int Len = str_length(m_pHistoryEntry); - if (Len < sizeof(m_Input) - 1) // TODO: WTF? - m_Input.Set(m_pHistoryEntry); - } + m_Input.Set(m_pHistoryEntry); else m_Input.Clear(); } diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp index 5bc2eadd..2f5c49ad 100644 --- a/src/game/client/components/console.cpp +++ b/src/game/client/components/console.cpp @@ -127,11 +127,7 @@ void CGameConsole::CInstance::OnInput(IInput::CEvent Event) m_pHistoryEntry = m_History.Last(); if (m_pHistoryEntry) - { - unsigned int Len = str_length(m_pHistoryEntry); - if (Len < sizeof(m_Input) - 1) // TODO: WTF? - m_Input.Set(m_pHistoryEntry); - } + m_Input.Set(m_pHistoryEntry); Handled = true; } else if (Event.m_Key == KEY_DOWN) @@ -140,11 +136,7 @@ void CGameConsole::CInstance::OnInput(IInput::CEvent Event) m_pHistoryEntry = m_History.Next(m_pHistoryEntry); if (m_pHistoryEntry) - { - unsigned int Len = str_length(m_pHistoryEntry); - if (Len < sizeof(m_Input) - 1) // TODO: WTF? - m_Input.Set(m_pHistoryEntry); - } + m_Input.Set(m_pHistoryEntry); else m_Input.Clear(); Handled = true; |