Change from atoi() to strtol() to match baseq2.

This is a noop. This was reported by maraakate in yquake issue #160.
This commit is contained in:
Yamagi Burmeister 2016-12-17 11:08:00 +01:00
parent 5c004e2c22
commit 8ad1ba53d6
1 changed files with 2 additions and 3 deletions

View File

@ -822,14 +822,13 @@ SP_trigger_gravity(edict_t *self)
if (st.gravity == 0)
{
gi.dprintf("trigger_gravity without gravity set at %s\n",
vtos(self->s.origin));
gi.dprintf("trigger_gravity without gravity set at %s\n", vtos(self->s.origin));
G_FreeEdict(self);
return;
}
InitTrigger(self);
self->gravity = atoi(st.gravity);
self->gravity = (int)strtol(st.gravity, (char **)NULL, 10);
self->touch = trigger_gravity_touch;
}