strtod exists in bg_lib.c now so Q_isanumber will work in the VMs, too.

This commit is contained in:
Thilo Schulz 2011-03-11 13:51:36 +00:00
parent a9830934ba
commit 641256f7f0
2 changed files with 63 additions and 43 deletions

View file

@ -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 )