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

Function GetFirstPath

editor/EPath.cpp:353–360  ·  view source on GitHub ↗

returns the index of the first path (from 0) alloced returns -1 if there are no paths

Source from the content-addressed store, hash-verified

351// returns the index of the first path (from 0) alloced
352// returns -1 if there are no paths
353int GetFirstPath() {
354 int i;
355 for (i = 0; i < MAX_GAME_PATHS; i++) {
356 if (GamePaths[i].used)
357 return i;
358 }
359 return -1;
360}
361
362#ifndef NEWEDITOR
363#include "editor/d3edit.h"

Callers 1

DrawAllPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected