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

Function EditorLoadLevel

editor/HFile.cpp:614–632  ·  view source on GitHub ↗

Load a new level

Source from the content-addressed store, hash-verified

612
613// Load a new level
614bool EditorLoadLevel(char *filename) {
615 if (LoadLevel(filename)) {
616
617 // Check for duplicate names in the level
618 CheckLevelNames();
619
620 New_mine = 1; // say that this is a new mine
621
622 // Set viewer object
623 SetEditorViewer();
624
625 // Reset view radius
626 ResetWireframeViewRad();
627
628 // Done
629 return TRUE;
630 } else
631 return FALSE;
632}
633
634// Save the current level
635// Returns 1 if level saved sucessfully

Callers 1

OnOpenDocumentMethod · 0.85

Calls 4

LoadLevelFunction · 0.85
CheckLevelNamesFunction · 0.85
SetEditorViewerFunction · 0.85
ResetWireframeViewRadFunction · 0.85

Tested by

no test coverage detected