| 4367 | } |
| 4368 | |
| 4369 | void 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 | |
| 4386 | void resetserverifempty() |
| 4387 | { |
no test coverage detected