Use strtod() instead of strof() to aid VS2005

This commit is contained in:
Yamagi Burmeister 2016-12-18 10:17:06 +01:00
parent 8fe8f832f8
commit 693b7bfb84

View file

@ -408,10 +408,10 @@ ED_ParseField(const char *key, const char *value, edict_t *ent)
*(int *)(b + f->ofs) = (int)strtol(value, (char **)NULL, 10);
break;
case F_FLOAT:
*(float *)(b + f->ofs) = strtof(value, (char **)NULL);
*(float *)(b + f->ofs) = (float)strtod(value, (char **)NULL);
break;
case F_ANGLEHACK:
v = strtof(value, (char **)NULL);
v = (float)strtod(value, (char **)NULL);
((float *)(b + f->ofs))[0] = 0;
((float *)(b + f->ofs))[1] = v;
((float *)(b + f->ofs))[2] = 0;