Frees an event for use by others
| 124 | |
| 125 | // Frees an event for use by others |
| 126 | void FreeEvent(int index) { |
| 127 | if (GameEvent[index].used != 1) { |
| 128 | Int3(); // Get Jason, trying to free an event that is not used |
| 129 | return; |
| 130 | } |
| 131 | GameEvent[index].used = 0; |
| 132 | if (GameEvent[index].data != NULL) { |
| 133 | mem_free(GameEvent[index].data); |
| 134 | GameEvent[index].data = NULL; |
| 135 | } |
| 136 | |
| 137 | Num_events--; |
| 138 | } |
| 139 | |
| 140 | // Processes all pending events, removing the ones that are expired |
| 141 | void ProcessNormalEvents() { |
no outgoing calls
no test coverage detected