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

Function throttle

source/src/client.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34VARF(throttle_decel, 0, 2, 32, throttle());
35
36void throttle()
37{
38 if(!curpeer) return;
39 ASSERT(ENET_PEER_PACKET_THROTTLE_SCALE==32);
40 enet_peer_throttle_configure(curpeer, throttle_interval*1000, throttle_accel, throttle_decel);
41}
42
43string clientpassword = "";
44int connectrole = CR_DEFAULT;

Callers 2

client.cppFile · 0.85
gets2cFunction · 0.85

Calls 1

Tested by

no test coverage detected