#include "cl_screen.h"
-#define NUMCROSSHAIRS 6
-extern cachepic_t *r_crosshairs[NUMCROSSHAIRS];
+#define NUMCROSSHAIRS 32
+extern cachepic_t *r_crosshairs[NUMCROSSHAIRS+1];
typedef struct refdef_s
{
static rtexture_t *char_texture;
-cachepic_t *r_crosshairs[NUMCROSSHAIRS];
+cachepic_t *r_crosshairs[NUMCROSSHAIRS+1];
//=============================================================================
/* Support Routines */
memset(cachepichash, 0, sizeof(cachepichash));
char_texture = Draw_CachePic("gfx/conchars", true)->tex;
- for (i = 0;i < NUMCROSSHAIRS;i++)
+ for (i = 1;i <= NUMCROSSHAIRS;i++)
r_crosshairs[i] = Draw_CachePic(va("gfx/crosshair%i", i), false);
}
dlight_t *light;
for (i = 0, light = r_shadow_worldlightchain;light;i++, light = light->next)
- R_MeshQueue_AddTransparent(light->origin, R_Shadow_DrawLightSprite_TransparentCallback, (entity_render_t *)light, i % NUMCROSSHAIRS, &light->rtlight);
+ R_MeshQueue_AddTransparent(light->origin, R_Shadow_DrawLightSprite_TransparentCallback, (entity_render_t *)light, 1+(i % 5), &light->rtlight);
R_MeshQueue_AddTransparent(r_editlights_cursorlocation, R_Shadow_DrawCursor_TransparentCallback, NULL, 0, NULL);
}