MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / SetCurrentLevel

Function SetCurrentLevel

Descent3/gamesequence.cpp:1424–1432  ·  view source on GitHub ↗

Sets the current level for subsequent level loads, movies, or briefings

Source from the content-addressed store, hash-verified

1422
1423// Sets the current level for subsequent level loads, movies, or briefings
1424void SetCurrentLevel(int level) {
1425 ASSERT(level > 0 && level <= Current_mission.num_levels);
1426
1427 // Set this level as the mission's current level
1428 Current_mission.cur_level = level;
1429
1430 // Set pointer to this level
1431 Current_level = &Current_mission.levels[level - 1];
1432}
1433
1434void StartLevelSounds();
1435

Callers 6

GameSequencerFunction · 0.85
StartNewGameFunction · 0.85
SetNextLevelFunction · 0.85
LGSMissionFunction · 0.85
DemoReadHeaderFunction · 0.85
DoEndMissionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected