MCPcopy Create free account
hub / github.com/ZDoom/Raze / InitRunLevel

Function InitRunLevel

source/games/sw/src/game.cpp:531–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

529//---------------------------------------------------------------------------
530
531void InitRunLevel(void)
532{
533 Mus_Stop();
534
535 DoTheCache();
536
537 // send packets with player info
538 InitNetPlayerOptions();
539
540 if (currentLevel)
541 {
542 PlaySong(currentLevel->music.GetChars(), currentLevel->cdSongId);
543 }
544
545 InitPrediction(getPlayer(myconnectindex));
546
547 InitTimingVars();
548
549 if (snd_ambience)
550 StartAmbientSound();
551}
552
553
554//---------------------------------------------------------------------------

Callers 2

NextLevelMethod · 0.85
NewGameMethod · 0.85

Calls 9

DoTheCacheFunction · 0.85
InitNetPlayerOptionsFunction · 0.85
PlaySongFunction · 0.85
InitPredictionFunction · 0.85
InitTimingVarsFunction · 0.85
StartAmbientSoundFunction · 0.85
getPlayerFunction · 0.70
Mus_StopFunction · 0.50
GetCharsMethod · 0.45

Tested by

no test coverage detected