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

Method OnEngineSimulateClientMessage

src/engine/server/antibot.cpp:199–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 return AntibotOnEngineServerMessage(ClientId, pData, Size, AntibotFlags);
198}
199bool CAntibot::OnEngineSimulateClientMessage(int *pClientId, void *pBuffer, int BufferSize, int *pOutSize, int *pFlags)
200{
201 int AntibotFlags = 0;
202 bool Result = AntibotOnEngineSimulateClientMessage(pClientId, pBuffer, BufferSize, pOutSize, &AntibotFlags);
203 if(Result)
204 {
205 *pFlags = 0;
206 if((AntibotFlags & ANTIBOT_MSGFLAG_NONVITAL) == 0)
207 {
208 *pFlags |= MSGFLAG_VITAL;
209 }
210 }
211 return Result;
212}
213#else
214CAntibot::CAntibot() :
215 m_pServer(nullptr), m_pConsole(nullptr), m_pGameServer(nullptr), m_Initialized(false)

Callers 1

PumpNetworkMethod · 0.80

Tested by

no test coverage detected