mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-12 00:01:43 +00:00
17 lines
242 B
R
17 lines
242 B
R
|
#include "cvar.h"
|
||
|
|
||
|
#include "CrosshairCvar.h"
|
||
|
|
||
|
@implementation CrosshairCvar
|
||
|
-(void) next
|
||
|
{
|
||
|
local integer val = Cvar_GetInteger (name);
|
||
|
Cvar_SetInteger (name, (val + 1) % 4);
|
||
|
}
|
||
|
|
||
|
-(integer) crosshair
|
||
|
{
|
||
|
return Cvar_GetInteger (name);
|
||
|
}
|
||
|
@end
|