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

Function osipf_FindObjectName

Descent3/osiris_predefs.cpp:3378–3386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3376}
3377
3378int osipf_FindObjectName(const char *name) {
3379 for (int i = 0; i < MAX_OBJECTS; i++) {
3380 if (Objects[i].type != OBJ_NONE && Objects[i].name != NULL) {
3381 if (!stricmp(name, Objects[i].name))
3382 return Objects[i].handle;
3383 }
3384 }
3385 return OBJECT_HANDLE_NONE;
3386}
3387
3388int osipf_GetTriggerRoom(int trigger_id) {
3389 if (trigger_id < 0 || trigger_id >= Num_triggers)

Callers 4

CheckLevelNamesFunction · 0.85
OnCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected