Searches thru all doors for a specific name, returns -1 if not found or index of door with name
| 218 | // Searches thru all doors for a specific name, returns -1 if not found |
| 219 | // or index of door with name |
| 220 | int 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 |
no outgoing calls
no test coverage detected