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

Function ClearAllEvents

Descent3/gameevent.cpp:89–98  ·  view source on GitHub ↗

Clears the event list

Source from the content-addressed store, hash-verified

87
88// Clears the event list
89void ClearAllEvents() {
90 int i;
91 for (i = 0; i < MAX_EVENTS; i++) {
92 if (GameEvent[i].used)
93 FreeEvent(i);
94 }
95
96 SpewInit();
97 Render_zoom = D3_DEFAULT_ZOOM;
98}
99
100// Returns an index of an allocated event
101// or -1 if all events are spoken for

Callers 4

CreateNewMineFunction · 0.85
StartLevelFunction · 0.85
FreeThisLevelFunction · 0.85
LGSEventsFunction · 0.85

Calls 2

FreeEventFunction · 0.85
SpewInitFunction · 0.85

Tested by

no test coverage detected