MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / ClearPlayerLeftState

Function ClearPlayerLeftState

Source/multi.cpp:288–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void ClearPlayerLeftState()
289{
290 for (size_t i = 0; i < Players.size(); i++) {
291 if (sgbPlayerLeftGameTbl[i]) {
292 if (gbBufferMsgs == 1)
293 msg_send_drop_pkt(i, sgdwPlayerLeftReasonTbl[i]);
294 else
295 PlayerLeftMsg(i, true);
296
297 sgbPlayerLeftGameTbl[i] = false;
298 sgdwPlayerLeftReasonTbl[i] = 0;
299 }
300 }
301}
302
303void CheckDropPlayer()
304{

Callers 2

multi_player_leftFunction · 0.85

Calls 3

msg_send_drop_pktFunction · 0.85
PlayerLeftMsgFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected