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

Function NewGame

source/core/mainloop.cpp:161–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159bool newGameStarted;
160
161void NewGame(MapRecord* map, int skill, bool ns = false)
162{
163 gi->FreeLevelData();
164 newGameStarted = true;
165 ShowIntermission(nullptr, map, nullptr, [=](bool) {
166 gi->NewGame(map, skill, ns);
167 gameaction = ga_level;
168 ResetStatusBar();
169 gameInput.resetCrouchToggle();
170 });
171}
172
173//==========================================================================
174//

Callers 1

GameTickerFunction · 0.85

Calls 5

ShowIntermissionFunction · 0.85
ResetStatusBarFunction · 0.85
resetCrouchToggleMethod · 0.80
FreeLevelDataMethod · 0.45
NewGameMethod · 0.45

Tested by

no test coverage detected