MCPcopy Create free account
hub / github.com/JACoders/OpenJK / FX_Init

Function FX_Init

code/cgame/FxUtil.cpp:104–130  ·  view source on GitHub ↗

------------------------- FX_Init Preps system for use -------------------------

Source from the content-addressed store, hash-verified

102// Preps system for use
103//-------------------------
104int FX_Init( void )
105{
106 if ( fxInitialized == qfalse )
107 {
108 fxInitialized = qtrue;
109
110 for ( int i = 0; i < MAX_EFFECTS; i++ )
111 {
112 effectList[i].mEffect = 0;
113 }
114 }
115
116 FX_Free();
117
118 mMax = 0;
119 mMaxTime = 0;
120
121 nextValidEffect = &effectList[0];
122 theFxHelper.Init();
123
124 // ( nothing to see here, go away )
125 //
126 extern void FX_CopeWithAnyLoadedSaveGames();
127 FX_CopeWithAnyLoadedSaveGames();
128
129 return true;
130}
131
132
133//-------------------------

Callers 1

CG_RegisterGraphicsFunction · 0.70

Calls 3

FX_FreeFunction · 0.70
InitMethod · 0.45

Tested by

no test coverage detected