diff --git a/src/g_spawn.c b/src/g_spawn.c index 1b5bfb8..acb86ef 100644 --- a/src/g_spawn.c +++ b/src/g_spawn.c @@ -422,10 +422,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;