char lightTargets[ MAX_SWITCHED_LIGHTS ][ 64 ];
int lightStyles[ MAX_SWITCHED_LIGHTS ];
+ /* -keeplights option: force lights to be kept and ignore what the map file says */
+ if (keepLights)
+ SetKeyValue(&entities[0], "_keepLights", "1");
+
/* ydnar: determine if we keep lights in the bsp */
if (KeyExists(&entities[ 0 ], "_keepLights") == qtrue)
{
/* ydnar: gs mods: set the first 6 drawindexes to 0 1 2 2 1 3 for triangles and quads */
numBSPDrawIndexes = 6;
+ AUTOEXPAND_BY_REALLOC_BSP(DrawIndexes, 1024);
bspDrawIndexes[ 0 ] = 0;
bspDrawIndexes[ 1 ] = 1;
bspDrawIndexes[ 2 ] = 2;