MCPcopy Create free account
hub / github.com/ddnet/ddnet / DummyResetInput

Method DummyResetInput

src/game/client/gameclient.cpp:4765–4778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4763}
4764
4765void CGameClient::DummyResetInput()
4766{
4767 if(!Client()->DummyConnected())
4768 return;
4769
4770 if((m_DummyInput.m_Fire & 1) != 0)
4771 m_DummyInput.m_Fire++;
4772
4773 m_Controls.ResetInput(!g_Config.m_ClDummy);
4774 m_Controls.m_aInputData[!g_Config.m_ClDummy].m_Hook = 0;
4775 m_Controls.m_aInputData[!g_Config.m_ClDummy].m_Fire = m_DummyInput.m_Fire;
4776
4777 m_DummyInput = m_Controls.m_aInputData[!g_Config.m_ClDummy];
4778}
4779
4780bool CGameClient::CanDisplayWarning() const
4781{

Callers 1

Con_DummyResetInputMethod · 0.80

Calls 3

DummyConnectedMethod · 0.80
ClientFunction · 0.50
ResetInputMethod · 0.45

Tested by

no test coverage detected