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

Function enddemoplayback

source/src/server.cpp:1203–1215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1201int nextplayback = 0;
1202
1203void enddemoplayback()
1204{
1205 if(!demoplayback) return;
1206 delete demoplayback;
1207 demoplayback = NULL;
1208 watchingdemo = false;
1209
1210 loopv(clients) sendf(i, 1, "risi", SV_DEMOPLAYBACK, "", i);
1211
1212 sendservmsg("demo playback finished");
1213
1214 loopv(clients) sendwelcome(clients[i]);
1215}
1216
1217void setupdemoplayback()
1218{

Callers 5

connectserv_Function · 0.85
setupdemoplaybackFunction · 0.85
readdemoFunction · 0.85
resetserverFunction · 0.85
stopdemoFunction · 0.85

Calls 4

sendfFunction · 0.85
sendservmsgFunction · 0.85
sendwelcomeFunction · 0.85
loopvFunction · 0.70

Tested by

no test coverage detected