Deals with some renamed doors. Translates the old name to the new name, then looks up the id
| 3567 | |
| 3568 | // Deals with some renamed doors. Translates the old name to the new name, then looks up the id |
| 3569 | int 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 | |
| 3587 | static inline char* GetCurrentSumString() { |
| 3588 | static char output_buf[100]; |
nothing calls this directly
no test coverage detected