strtod exists in bg_lib.c now so Q_isanumber will work in the VMs, too.
This commit is contained in:
1 parent
a9830934ba
commit
641256f7f0
2 files changed
+63
-43
No files matched your search
@@ -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 )
|
||||
|
||||
Reference in new issue
Block a user