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

Function InitGamePaths

Descent3/gamepath.cpp:93–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void InitGamePaths() {
94 static bool f_game_paths_init = false;
95 int i;
96
97 if (f_game_paths_init) {
98 // Clear out the current path info
99 for (i = 0; i < MAX_GAME_PATHS; i++) {
100 FreeGamePath(i);
101 }
102 }
103
104 f_game_paths_init = true;
105
106 for (i = 0; i < MAX_GAME_PATHS; i++) {
107 GamePaths[i].num_nodes = 0;
108 GamePaths[i].used = 0;
109 }
110
111 Num_game_paths = 0;
112}
113
114// searches through GamePath index and returns index of path matching name
115// returns -1 if not found

Callers 3

CreateNewMineFunction · 0.85
FreeThisLevelFunction · 0.85
LoadLevelFunction · 0.85

Calls 1

FreeGamePathFunction · 0.85

Tested by

no test coverage detected