Use matching strtof(9 instead of atof().

This saves one cast. This was reported by maraakate in yquake2 issue
160.
This commit is contained in:
Yamagi Burmeister 2016-12-17 10:38:26 +01:00
parent b16293c01b
commit fbf505834f

View file

@ -821,7 +821,7 @@ SP_trigger_gravity(edict_t *self)
InitTrigger(self);
self->gravity = atof(st.gravity);
self->gravity = strtof(st.gravity, (char **)NULL);
if (self->spawnflags & 1) /* TOGGLE */
{