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

Function FreeGamePath

Descent3/gamepath.cpp:81–91  ·  view source on GitHub ↗

Frees gamepath n for future use

Source from the content-addressed store, hash-verified

79
80// Frees gamepath n for future use
81void FreeGamePath(int n) {
82 if (!GamePaths[n].used)
83 return;
84
85 mem_free(GamePaths[n].pathnodes);
86 mprintf(0, "Path %d lost some\n", n);
87
88 GamePaths[n].num_nodes = 0;
89 GamePaths[n].used = 0;
90 Num_game_paths--;
91}
92
93void InitGamePaths() {
94 static bool f_game_paths_init = false;

Callers 3

OnPathpadAddPathMethod · 0.85
OnDeletePathMethod · 0.85
InitGamePathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected