mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 17:48:19 +00:00
Merge pull request #8665 from Robyt3/Client-DirectInput-Removal
Remove unused `CClient::DirectInput` function
This commit is contained in:
commit
dac12c7afd
|
@ -236,19 +236,6 @@ bool CClient::ConnectionProblems() const
|
||||||
return m_aNetClient[g_Config.m_ClDummy].GotProblems(MaxLatencyTicks() * time_freq() / GameTickSpeed()) != 0;
|
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()
|
void CClient::SendInput()
|
||||||
{
|
{
|
||||||
int64_t Now = time_get();
|
int64_t Now = time_get();
|
||||||
|
|
|
@ -294,7 +294,6 @@ public:
|
||||||
|
|
||||||
IGraphics::CTextureHandle GetDebugFont() const override { return m_DebugFont; }
|
IGraphics::CTextureHandle GetDebugFont() const override { return m_DebugFont; }
|
||||||
|
|
||||||
void DirectInput(int *pInput, int Size);
|
|
||||||
void SendInput();
|
void SendInput();
|
||||||
|
|
||||||
// TODO: OPT: do this a lot smarter!
|
// TODO: OPT: do this a lot smarter!
|
||||||
|
|
Loading…
Reference in a new issue