diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 87df1a2917f..8155b7104af 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -236,19 +236,6 @@ bool CClient::ConnectionProblems() const return m_aNetClient[g_Config.m_ClDummy].GotProblems(MaxLatencyTicks() * time_freq() / GameTickSpeed()) != 0; } -void CClient::DirectInput(int *pInput, int Size) -{ - CMsgPacker Msg(NETMSG_INPUT, true); - Msg.AddInt(m_aAckGameTick[g_Config.m_ClDummy]); - Msg.AddInt(m_aPredTick[g_Config.m_ClDummy]); - Msg.AddInt(Size); - - for(int i = 0; i < Size / 4; i++) - Msg.AddInt(pInput[i]); - - SendMsgActive(&Msg, 0); -} - void CClient::SendInput() { int64_t Now = time_get(); diff --git a/src/engine/client/client.h b/src/engine/client/client.h index 526bd1b4d07..8c17cf8cbc8 100644 --- a/src/engine/client/client.h +++ b/src/engine/client/client.h @@ -294,7 +294,6 @@ class CClient : public IClient, public CDemoPlayer::IListener IGraphics::CTextureHandle GetDebugFont() const override { return m_DebugFont; } - void DirectInput(int *pInput, int Size); void SendInput(); // TODO: OPT: do this a lot smarter!