Work-around for a bug in the work-around for an engine bug ($evalint/float and negative numbers).

This commit is contained in:
Andrei Drexler 2009-06-28 19:44:10 +00:00
parent c288335496
commit 0103d1cbb5

View file

@ -542,9 +542,9 @@ qboolean PC_Float_Parse(int handle, float *f)
}
if (negative)
*f = -atof(token.string);
*f = -Q_fabs(token.floatvalue);
else
*f = atof(token.string);
*f = Q_fabs(token.floatvalue);
return qtrue;
}
@ -652,9 +652,9 @@ qboolean PC_Int_Parse(int handle, int *i)
}
if (negative)
*i = -atoi(token.string);
*i = -abs(token.intvalue);
else
*i = atoi(token.string);
*i = abs(token.intvalue);
return qtrue;
}