MCPcopy Create free account
hub / github.com/assaultcube/AC / zapplayer

Function zapplayer

source/src/clientgame.cpp:510–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508
509VAR(lastpm, 1, -1, 0);
510void zapplayer(playerent *&d)
511{
512 if(d && d->clientnum == lastpm) lastpm = -1;
513 if(d == (playerent *)camera1) resetcamera();
514 DELETEP(d);
515}
516
517void movelocalplayer()
518{

Callers 2

parsemessagesFunction · 0.85
disconnectFunction · 0.85

Calls 1

resetcameraFunction · 0.85

Tested by

no test coverage detected