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

Function FindEventID

Descent3/gameevent.cpp:174–183  ·  view source on GitHub ↗

Goes through all events and returns the first index of the id matching the argument passed. If not match found, returns -1

Source from the content-addressed store, hash-verified

172// Goes through all events and returns the first index of the id matching the argument passed.
173// If not match found, returns -1
174int 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
186void ProcessRenderEvents() {

Callers 2

DecreasePlayerShieldsFunction · 0.85
DecreasePlayerEnergyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected