strtod exists in bg_lib.c now so Q_isanumber will work in the VMs, too.
This commit is contained in:
parent
a9830934ba
commit
641256f7f0
2 changed files with 63 additions and 43 deletions
|
@ -705,10 +705,6 @@ char* Q_strrchr( const char* string, int c )
|
|||
|
||||
qboolean Q_isanumber( const char *s )
|
||||
{
|
||||
#ifdef Q3_VM
|
||||
//FIXME: implement
|
||||
return qfalse;
|
||||
#else
|
||||
char *p;
|
||||
double d;
|
||||
|
||||
|
@ -718,7 +714,6 @@ qboolean Q_isanumber( const char *s )
|
|||
d = strtod( s, &p );
|
||||
|
||||
return *p == '\0';
|
||||
#endif
|
||||
}
|
||||
|
||||
qboolean Q_isintegral( float f )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue