Merge pull request #8665 from Robyt3/Client-DirectInput-Removal

Remove unused `CClient::DirectInput` function
This commit is contained in:
Dennis Felsing 2024-07-29 21:47:36 +00:00 committed by GitHub
commit dac12c7afd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 14 deletions

View file

@ -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();

View file

@ -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!