예제 #1
0
        static client()
        {
            int kk;

            for (kk = 0; kk < MAX_EFRAGS; kk++)
            {
                cl_efrags[kk] = new render.efrag_t();
            }
            for (kk = 0; kk < quakedef.MAX_EDICTS; kk++)
            {
                cl_entities[kk] = new render.entity_t();
            }
            for (kk = 0; kk < MAX_STATIC_ENTITIES; kk++)
            {
                cl_static_entities[kk] = new render.entity_t();
            }
            for (kk = 0; kk < MAX_TEMP_ENTITIES; kk++)
            {
                cl_temp_entities[kk] = new render.entity_t();
            }
            for (kk = 0; kk < quakedef.MAX_LIGHTSTYLES; kk++)
            {
                cl_lightstyle[kk] = new lightstyle_t();
            }
            for (kk = 0; kk < MAX_DLIGHTS; kk++)
            {
                cl_dlights[kk] = new dlight_t();
            }
            for (kk = 0; kk < MAX_BEAMS; kk++)
            {
                cl_beams[kk] = new beam_t();
            }
        }
예제 #2
0
 static client()
 {
     int kk;
     for (kk = 0; kk < MAX_EFRAGS; kk++) cl_efrags[kk] = new render.efrag_t();
     for (kk = 0; kk < quakedef.MAX_EDICTS; kk++) cl_entities[kk] = new render.entity_t();
     for (kk = 0; kk < MAX_STATIC_ENTITIES; kk++) cl_static_entities[kk] = new render.entity_t();
     for (kk = 0; kk < MAX_TEMP_ENTITIES; kk++) cl_temp_entities[kk] = new render.entity_t();
     for (kk = 0; kk < quakedef.MAX_LIGHTSTYLES; kk++) cl_lightstyle[kk] = new lightstyle_t();
     for (kk = 0; kk < MAX_DLIGHTS; kk++) cl_dlights[kk] = new dlight_t();
     for (kk = 0; kk < MAX_BEAMS; kk++) cl_beams[kk] = new beam_t();
 }