MCPcopy Create free account
hub / github.com/diasurgical/devilution / SNetDropPlayer

Method SNetDropPlayer

SourceX/dvlnet/base.cpp:224–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224bool base::SNetDropPlayer(int playerid, DWORD flags)
225{
226 auto pkt = pktfty->make_packet<PT_DISCONNECT>(plr_self,
227 PLR_BROADCAST,
228 (plr_t)playerid,
229 (leaveinfo_t)flags);
230 send(*pkt);
231 recv_local(*pkt);
232 return true;
233}
234
235plr_t base::get_owner()
236{

Callers 1

SNetDropPlayerFunction · 0.45

Calls 1

sendFunction · 0.50

Tested by

no test coverage detected