mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
Use strtod() instead of strof() to aid VS2005
This commit is contained in:
parent
8fe8f832f8
commit
693b7bfb84
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue