MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / FreeEvent

Function FreeEvent

Descent3/gameevent.cpp:126–138  ·  view source on GitHub ↗

Frees an event for use by others

Source from the content-addressed store, hash-verified

124
125// Frees an event for use by others
126void 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
141void ProcessNormalEvents() {

Callers 3

ClearAllEventsFunction · 0.85
ProcessNormalEventsFunction · 0.85
ProcessRenderEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected