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

Function neterr

source/src/clients2c.cpp:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16packetqueue pktlogger;
17
18void neterr(const char *s)
19{
20 conoutf("\f3illegal network message (%s)", s);
21
22 // might indicate a client/server communication bug, create error report
23 pktlogger.flushtolog("packetlog.txt");
24 conoutf("\f3wrote a network error report to packetlog.txt, please post this file to the bugtracker now!");
25
26 disconnect();
27}
28
29VARP(autogetmap, 0, 1, 1); // only if the client doesn't have that map
30VARP(autogetnewmaprevisions, 0, 1, 1);

Callers 3

parsepositionsFunction · 0.85
parsemessagesFunction · 0.85
newclientFunction · 0.85

Calls 3

disconnectFunction · 0.85
flushtologMethod · 0.80
conoutfFunction · 0.70

Tested by

no test coverage detected