mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-12 21:52:32 +00:00
16 lines
234 B
R
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) % 4);
|
|
}
|
|
|
|
-(int) crosshair
|
|
{
|
|
return Cvar_GetInteger (name);
|
|
}
|
|
@end
|