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

Function restorescore

source/src/server.cpp:2867–2880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2865}
2866
2867bool restorescore(client &c)
2868{
2869 //if(ci->local) return false;
2870 savedscore *sc = findscore(c, false);
2871 if(sc && sc->valid)
2872 {
2873 sc->restore(c.state);
2874 sc->valid = false;
2875 if ( c.connectmillis - c.state.lastdisc < 5000 ) c.state.reconnections++;
2876 else if ( c.state.reconnections ) c.state.reconnections--;
2877 return true;
2878 }
2879 return false;
2880}
2881
2882void sendservinfo(client &c)
2883{

Callers 1

processFunction · 0.85

Calls 2

findscoreFunction · 0.85
restoreMethod · 0.45

Tested by

no test coverage detected