mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-21 19:32:30 +00:00
ATOF problems with leading spaces fix
This commit is contained in:
parent
88a9d8d68a
commit
48b66f4578
1 changed files with 7 additions and 0 deletions
|
@ -106,6 +106,13 @@ float Q_atof (char *str)
|
|||
int c;
|
||||
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 == '-')
|
||||
{
|
||||
sign = -1;
|
||||
|
|
Loading…
Reference in a new issue