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

Function updatelagtime

source/src/clients2c.cpp:104–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void updatelagtime(playerent *d)
105{
106 int lagtime = totalmillis-d->lastupdate;
107 if(lagtime)
108 {
109 if(d->state!=CS_SPAWNING && d->lastupdate) d->plag = (d->plag*5+lagtime)/6;
110 d->lastupdate = totalmillis;
111 }
112}
113
114void parsepositions(ucharbuf &p)
115{

Callers 1

parsepositionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected