mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Change incorrectly named OnClientDirectInput function
This has not done any Direct Input since #1441
This commit is contained in:
parent
c90dbe5ba0
commit
e3723d3843
|
@ -330,7 +330,7 @@ public:
|
||||||
virtual void OnClientEnter(int ClientId) = 0;
|
virtual void OnClientEnter(int ClientId) = 0;
|
||||||
virtual void OnClientDrop(int ClientId, const char *pReason) = 0;
|
virtual void OnClientDrop(int ClientId, const char *pReason) = 0;
|
||||||
virtual void OnClientPrepareInput(int ClientId, void *pInput) = 0;
|
virtual void OnClientPrepareInput(int ClientId, void *pInput) = 0;
|
||||||
virtual void OnClientDirectInput(int ClientId, void *pInput) = 0;
|
virtual void OnClientFreshInput(int ClientId, void *pInput) = 0;
|
||||||
virtual void OnClientPredictedInput(int ClientId, void *pInput) = 0;
|
virtual void OnClientPredictedInput(int ClientId, void *pInput) = 0;
|
||||||
virtual void OnClientPredictedEarlyInput(int ClientId, void *pInput) = 0;
|
virtual void OnClientPredictedEarlyInput(int ClientId, void *pInput) = 0;
|
||||||
|
|
||||||
|
|
|
@ -1686,7 +1686,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
|
||||||
|
|
||||||
// call the mod with the fresh input data
|
// call the mod with the fresh input data
|
||||||
if(m_aClients[ClientId].m_State == CClient::STATE_INGAME)
|
if(m_aClients[ClientId].m_State == CClient::STATE_INGAME)
|
||||||
GameServer()->OnClientDirectInput(ClientId, LatestInput.m_aData);
|
GameServer()->OnClientFreshInput(ClientId, LatestInput.m_aData);
|
||||||
}
|
}
|
||||||
else if(Msg == NETMSG_RCON_CMD)
|
else if(Msg == NETMSG_RCON_CMD)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1302,8 +1302,8 @@ void CGameContext::OnClientPrepareInput(int ClientId, void *pInput)
|
||||||
pPlayerInput->m_PlayerFlags = PlayerFlags_SevenToSix(pPlayerInput->m_PlayerFlags);
|
pPlayerInput->m_PlayerFlags = PlayerFlags_SevenToSix(pPlayerInput->m_PlayerFlags);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called on all incoming NETMSG_INPUT, only sets player flags and tracks afk status. Does not perform a DirectInput
|
// Called on all incoming NETMSG_INPUT, only sets player flags and tracks afk status.
|
||||||
void CGameContext::OnClientDirectInput(int ClientId, void *pInput)
|
void CGameContext::OnClientFreshInput(int ClientId, void *pInput)
|
||||||
{
|
{
|
||||||
if(!m_World.m_Paused)
|
if(!m_World.m_Paused)
|
||||||
m_apPlayers[ClientId]->OnPlayerFreshInput((CNetObj_PlayerInput *)pInput);
|
m_apPlayers[ClientId]->OnPlayerFreshInput((CNetObj_PlayerInput *)pInput);
|
||||||
|
|
|
@ -313,7 +313,7 @@ public:
|
||||||
void OnClientEnter(int ClientId) override;
|
void OnClientEnter(int ClientId) override;
|
||||||
void OnClientDrop(int ClientId, const char *pReason) override;
|
void OnClientDrop(int ClientId, const char *pReason) override;
|
||||||
void OnClientPrepareInput(int ClientId, void *pInput) override;
|
void OnClientPrepareInput(int ClientId, void *pInput) override;
|
||||||
void OnClientDirectInput(int ClientId, void *pInput) override;
|
void OnClientFreshInput(int ClientId, void *pInput) override;
|
||||||
void OnClientPredictedInput(int ClientId, void *pInput) override;
|
void OnClientPredictedInput(int ClientId, void *pInput) override;
|
||||||
void OnClientPredictedEarlyInput(int ClientId, void *pInput) override;
|
void OnClientPredictedEarlyInput(int ClientId, void *pInput) override;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue