MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / zGameStateFindEvent

Function zGameStateFindEvent

src/SB/Game/zGameState.cpp:140–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140S32 zGameStateFindEvent(U32* eventList, S32 eventCount, S32 targetMode, S32 targetEvent,
141 S32* new_mode, S32* new_state)
142{
143 for (S32 i = 0; i < eventCount; ++i)
144 {
145 if (targetEvent == eventList[i])
146 {
147 *new_mode = targetMode;
148 *new_state = i;
149 return 1;
150 }
151 }
152 return 0;
153}
154
155void zGameStateSwitchEvent(S32 event)
156{

Callers 1

zGameStateSwitchEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected