mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
Remove unused CClient::DirectInput
function
The function is unused and because the message is not flushed it would also not have worked correctly. The `NETMSG_INPUT` message is already packed and flushed in the `CClient::SendInput` function. Closes #8408.
This commit is contained in:
parent
83c9b6cae6
commit
92b0b90b29
|
@ -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();
|
||||
|
|
|
@ -294,7 +294,6 @@ public:
|
|||
|
||||
IGraphics::CTextureHandle GetDebugFont() const override { return m_DebugFont; }
|
||||
|
||||
void DirectInput(int *pInput, int Size);
|
||||
void SendInput();
|
||||
|
||||
// TODO: OPT: do this a lot smarter!
|
||||
|
|
Loading…
Reference in a new issue