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

Function ProcessRenderEvents

Descent3/gameevent.cpp:186–198  ·  view source on GitHub ↗

Processes all pending events, removing the ones that are expired

Source from the content-addressed store, hash-verified

184
185// Processes all pending events, removing the ones that are expired
186void ProcessRenderEvents() {
187 int i, count = 0;
188
189 for (i = 0; i < MAX_EVENTS && count < Num_events; i++) {
190 if (GameEvent[i].used) {
191 count++;
192 if (GameEvent[i].type == RENDER_EVENT && GameEvent[i].end_time <= Gametime) {
193 HandleEvent(&GameEvent[i]);
194 FreeEvent(i);
195 }
196 }
197 }
198}
199
200// Adds new event to the event list. The event will trigger at Gametime+length.
201// data and size represent event specific data - if there is no event specific data

Callers 1

GameDrawMainViewFunction · 0.85

Calls 2

HandleEventFunction · 0.85
FreeEventFunction · 0.85

Tested by

no test coverage detected