Little enhancement for the rendering loop there was a funtion implemented to sort lights by priority but it never got executed so this should clear up the light flickering a bit till i get the 8 light limit a little higher with the pipeline rewrite.
Index: code/graphics/gropengllight.cpp
===================================================================
--- code/graphics/gropengllight.cpp (Revision 7291)
+++ code/graphics/gropengllight.cpp (Arbeitskopie)
@@ -293,6 +293,8 @@
glTranslated(-eyex, -eyey, -eyez);
glScalef(1.0f, 1.0f, -1.0f);
+ //Valathil: Sort lights by priority
+ opengl_pre_render_init_lights();
for (i = 0; i < GL_max_lights; i++) {
if ( (offset + i) >= Num_active_gl_lights ) {