Change incorrectly named OnClientDirectInput function

This has not done any Direct Input since #1441
This commit is contained in:
Tater 2024-06-01 22:26:57 -05:00
parent c90dbe5ba0
commit e3723d3843
4 changed files with 5 additions and 5 deletions

View file

@ -330,7 +330,7 @@ public:
virtual void OnClientEnter(int ClientId) = 0;
virtual void OnClientDrop(int ClientId, const char *pReason) = 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 OnClientPredictedEarlyInput(int ClientId, void *pInput) = 0;

View file

@ -1686,7 +1686,7 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
// call the mod with the fresh input data
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)
{

View file

@ -1302,8 +1302,8 @@ void CGameContext::OnClientPrepareInput(int ClientId, void *pInput)
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
void CGameContext::OnClientDirectInput(int ClientId, void *pInput)
// Called on all incoming NETMSG_INPUT, only sets player flags and tracks afk status.
void CGameContext::OnClientFreshInput(int ClientId, void *pInput)
{
if(!m_World.m_Paused)
m_apPlayers[ClientId]->OnPlayerFreshInput((CNetObj_PlayerInput *)pInput);

View file

@ -313,7 +313,7 @@ public:
void OnClientEnter(int ClientId) override;
void OnClientDrop(int ClientId, const char *pReason) 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 OnClientPredictedEarlyInput(int ClientId, void *pInput) override;