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

Function SpecialFindDoorName

Descent3/LoadLevel.cpp:3569–3585  ·  view source on GitHub ↗

Deals with some renamed doors. Translates the old name to the new name, then looks up the id

Source from the content-addressed store, hash-verified

3567
3568// Deals with some renamed doors. Translates the old name to the new name, then looks up the id
3569int SpecialFindDoorName(const char *name) {
3570 int i, id;
3571
3572 // Look up the old name, and return it if found
3573 id = FindDoorName(name);
3574 if (id != -1)
3575 return id;
3576
3577 // Didn't find old name, so see if there's a new name, and look for that
3578 for (i = 0; i < NUM_RENAMED_DOORS; i++) {
3579 if (stricmp(name, Old_door_names[i]) == 0)
3580 return FindDoorName(New_door_names[i]);
3581 }
3582
3583 // Didn't find old name, didn't find xlation for the old name
3584 return -1;
3585}
3586
3587static inline char* GetCurrentSumString() {
3588 static char output_buf[100];

Callers

nothing calls this directly

Calls 1

FindDoorNameFunction · 0.85

Tested by

no test coverage detected