Goes through all events and returns the first index of the id matching the argument passed. If not match found, returns -1
| 172 | // Goes through all events and returns the first index of the id matching the argument passed. |
| 173 | // If not match found, returns -1 |
| 174 | int FindEventID(int id) { |
| 175 | int i; |
| 176 | |
| 177 | for (i = 0; i < MAX_EVENTS; i++) { |
| 178 | if (GameEvent[i].used && GameEvent[i].id == id) |
| 179 | return i; |
| 180 | } |
| 181 | |
| 182 | return -1; |
| 183 | } |
| 184 | |
| 185 | // Processes all pending events, removing the ones that are expired |
| 186 | void ProcessRenderEvents() { |
no outgoing calls
no test coverage detected