ATOF problems with leading spaces fix

This commit is contained in:
Maddes Buecher 2000-08-17 19:45:59 +00:00
parent 88a9d8d68a
commit 48b66f4578

View file

@ -106,6 +106,13 @@ float Q_atof (char *str)
int c; int c;
int decimal, total; int decimal, total;
// 1999-12-27 ATOF problems with leading spaces fix by Maddes start
while ((*str) && (*str<=' '))
{
str++;
}
// 1999-12-27 ATOF problems with leading spaces fix by Maddes end
if (*str == '-') if (*str == '-')
{ {
sign = -1; sign = -1;