quakeforge/ruamoko/cl_menu/CrosshairCvar.r
Bill Currie a372efee5c Add a new crosshair.
Now all 4 slots of the crosshair table are used :)

Also, fix the offset for pic based crosshairs in glsl, and use just one
func for them.
2012-12-12 19:36:50 +09:00

16 lines
234 B
R

#include "cvar.h"
#include "CrosshairCvar.h"
@implementation CrosshairCvar
-(void) next
{
local int val = Cvar_GetInteger (name);
Cvar_SetInteger (name, (val + 1) % 6);
}
-(int) crosshair
{
return Cvar_GetInteger (name);
}
@end