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

Function FindDoorName

Descent3/door.cpp:220–230  ·  view source on GitHub ↗

Searches thru all doors for a specific name, returns -1 if not found or index of door with name

Source from the content-addressed store, hash-verified

218// Searches thru all doors for a specific name, returns -1 if not found
219// or index of door with name
220int FindDoorName(const char *name) {
221 int i;
222
223 ASSERT(name != NULL);
224
225 for (i = 0; i < MAX_DOORS; i++)
226 if (Doors[i].used && !stricmp(name, Doors[i].name))
227 return i;
228
229 return -1;
230}
231
232// Given a filename, loads the model found in that file
233

Callers 12

mng_RenamePageFunction · 0.85
mng_PopAddonPagesFunction · 0.85
mng_LoadNetDoorPageFunction · 0.85
mng_LoadLocalDoorPageFunction · 0.85
OnAddDoorMethod · 0.85
InputDoorNameFunction · 0.85
SaveDoorsOnCloseMethod · 0.85
AddPageFromUserMethod · 0.85
ProcessPageFromFileMethod · 0.85
SpecialFindDoorNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected