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

Function FindNextMap

source/core/mapinfo.cpp:155–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155MapRecord* FindNextMap(MapRecord* thismap)
156{
157 MapRecord* next = nullptr;
158 if (!thismap->NextMap.Compare("-")) return nullptr; // '-' means to forcibly end the game here.
159 if (thismap->NextMap.IsNotEmpty()) next = FindMapByName(thismap->NextMap.GetChars());
160 if (!next) next = FindMapByLevelNum(thismap->levelNumber + 1);
161 return next;
162}
163
164MapRecord* FindNextSecretMap(MapRecord* thismap)
165{

Callers 9

setnextmapFunction · 0.85
OperateSpriteFunction · 0.85
OperateTripTriggerFunction · 0.85
NextCheatFunction · 0.85
MultiPlayLimitsFunction · 0.85
domovethingsFunction · 0.85
LevelFinishedFunction · 0.85
levelEndLevelFunction · 0.85
FindNextSecretMapFunction · 0.85

Calls 5

FindMapByNameFunction · 0.85
FindMapByLevelNumFunction · 0.85
IsNotEmptyMethod · 0.80
CompareMethod · 0.45
GetCharsMethod · 0.45

Tested by

no test coverage detected