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

Function checkintermission

source/src/server.cpp:4369–4384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4367}
4368
4369void checkintermission()
4370{
4371 if(sg->minremain>0)
4372 {
4373 sg->minremain = (sg->gamemillis >= sg->gamelimit || sg->forceintermission) ? 0 : (sg->gamelimit - sg->gamemillis + 60000 - 1) / 60000;
4374 sendf(-1, 1, "ri3", SV_TIMEUP, (sg->gamemillis >= sg->gamelimit || sg->forceintermission) ? sg->gamelimit : sg->gamemillis, sg->gamelimit);
4375 if(demorecord && sg->gamemillis > 100000) sg->demosequence = demorecord->sequence; // after 100 seconds played, switch F10-default from "last game" to "this game"
4376 }
4377 if(!sg->interm && sg->minremain <= 0)
4378 { // intermission starting here
4379 sg->interm = sg->gamemillis + 10000;
4380 demorecord_beginintermission();
4381 pushvitasforsaving(true);
4382 }
4383 sg->forceintermission = false;
4384}
4385
4386void resetserverifempty()
4387{

Callers 1

serversliceFunction · 0.85

Calls 3

sendfFunction · 0.85
pushvitasforsavingFunction · 0.85

Tested by

no test coverage detected