Index: darkplaces/gl_rmain.c
diff -u darkplaces/gl_rmain.c:1.338 darkplaces/gl_rmain.c:1.339
--- darkplaces/gl_rmain.c:1.338	Fri Feb 23 07:05:14 2007
+++ darkplaces/gl_rmain.c	Fri Feb 23 07:47:02 2007
@@ -3966,17 +3966,14 @@
 extern void R_BuildLightMap(const entity_render_t *ent, msurface_t *surface);
 void R_DrawSurfaces(entity_render_t *ent, qboolean skysurfaces)
 {
-	int i, j, k, l, endj, f, flagsmask;
+	int i, j, endj, f, flagsmask;
 	int counttriangles = 0;
 	msurface_t *surface, *endsurface, **surfacechain;
 	texture_t *t;
-	q3mbrush_t *brush;
 	model_t *model = ent->model;
-	const int *elements;
 	const int maxsurfacelist = 1024;
 	int numsurfacelist = 0;
 	msurface_t *surfacelist[1024];
-	vec3_t v;
 	if (model == NULL)
 		return;
 