| 3376 | } |
| 3377 | |
| 3378 | int 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 | |
| 3388 | int osipf_GetTriggerRoom(int trigger_id) { |
| 3389 | if (trigger_id < 0 || trigger_id >= Num_triggers) |
no outgoing calls
no test coverage detected