(float) atof() -> strtof(), which computes in float instead of computing in
double and casting to float, which is silly
This commit is contained in:
@@ -15,7 +15,7 @@ void IncorrectActorParametersWarning( const ParsedCommand &command, int iMaxInde
|
||||
void ParsedCommandToken::Set( const CString &sToken )
|
||||
{
|
||||
s = sToken;
|
||||
f = (float) atof( sToken );
|
||||
f = strtof( sToken, NULL );
|
||||
i = atoi( sToken );
|
||||
b = i != 0;
|
||||
bColorIsValid = c.FromString( sToken );
|
||||
|
||||
Reference in New Issue
Block a user