MCPcopy Create free account
hub / github.com/ddnet/ddnet / StartRound

Method StartRound

src/game/server/gamecontroller.cpp:501–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501void IGameController::StartRound()
502{
503 ResetGame();
504
505 m_RoundStartTick = Server()->Tick();
506 m_SuddenDeath = 0;
507 m_GameOverTick = -1;
508 SetGamePaused(false);
509 Server()->DemoRecorder_HandleAutoStart();
510 char aBuf[256];
511 str_format(aBuf, sizeof(aBuf), "start round type='%s' teamplay='%d'", m_pGameType, m_GameFlags & GAMEFLAG_TEAMS);
512 GameServer()->Console()->Print(IConsole::OUTPUT_LEVEL_DEBUG, "game", aBuf);
513}
514
515void IGameController::ChangeMap(const char *pToMap)
516{

Callers 1

ConRestartMethod · 0.80

Calls 6

str_formatFunction · 0.85
ServerClass · 0.50
TickMethod · 0.45
PrintMethod · 0.45
ConsoleMethod · 0.45

Tested by

no test coverage detected