mirror of
https://github.com/yquake2/xatrix.git
synced 2024-11-10 06:42:22 +00:00
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:
parent
5c004e2c22
commit
8ad1ba53d6
1 changed files with 2 additions and 3 deletions
|
@ -822,14 +822,13 @@ SP_trigger_gravity(edict_t *self)
|
||||||
|
|
||||||
if (st.gravity == 0)
|
if (st.gravity == 0)
|
||||||
{
|
{
|
||||||
gi.dprintf("trigger_gravity without gravity set at %s\n",
|
gi.dprintf("trigger_gravity without gravity set at %s\n", vtos(self->s.origin));
|
||||||
vtos(self->s.origin));
|
|
||||||
G_FreeEdict(self);
|
G_FreeEdict(self);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
InitTrigger(self);
|
InitTrigger(self);
|
||||||
self->gravity = atoi(st.gravity);
|
self->gravity = (int)strtol(st.gravity, (char **)NULL, 10);
|
||||||
self->touch = trigger_gravity_touch;
|
self->touch = trigger_gravity_touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue