* Rename voip cvar to cl_voip
* s/#if USE_VOIP/#ifdef USE_VOIP/ * Add generalised runtime cvar range checking, currently on [sv|cl]_voip, dedicated and a bunch of r_ variables
This commit is contained in:
parent
809c361744
commit
37d664d4b2
24 changed files with 239 additions and 110 deletions
|
@ -726,6 +726,28 @@ char* Q_strrchr( const char* string, int c )
|
|||
return sp;
|
||||
}
|
||||
|
||||
qboolean Q_isanumber( const char *s )
|
||||
{
|
||||
#ifdef Q3_VM
|
||||
//FIXME: implement
|
||||
return qfalse;
|
||||
#else
|
||||
char *p;
|
||||
|
||||
if( *s == '\0' )
|
||||
return qfalse;
|
||||
|
||||
strtof( s, &p );
|
||||
|
||||
return *p == '\0';
|
||||
#endif
|
||||
}
|
||||
|
||||
qboolean Q_isintegral( float f )
|
||||
{
|
||||
return (int)f == f;
|
||||
}
|
||||
|
||||
/*
|
||||
=============
|
||||
Q_strncpyz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue