mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-05 15:31:16 +00:00
use sv_gravity->value instead of movevars.gravity
This commit is contained in:
parent
3e4c200430
commit
6ba5e823b2
1 changed files with 2 additions and 2 deletions
|
@ -359,7 +359,7 @@ SV_AddGravity (edict_t *ent)
|
||||||
ent_gravity = SVfloat (ent, gravity);
|
ent_gravity = SVfloat (ent, gravity);
|
||||||
else
|
else
|
||||||
ent_gravity = 1.0;
|
ent_gravity = 1.0;
|
||||||
SVvector (ent, velocity)[2] -= ent_gravity * movevars.gravity * sv_frametime;
|
SVvector (ent, velocity)[2] -= ent_gravity * sv_gravity->value * sv_frametime;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PUSHMOVE */
|
/* PUSHMOVE */
|
||||||
|
@ -713,7 +713,7 @@ SV_Physics_Step (edict_t *ent)
|
||||||
|
|
||||||
// freefall if not on ground
|
// freefall if not on ground
|
||||||
if (!((int) SVfloat (ent, flags) & (FL_ONGROUND | FL_FLY | FL_SWIM))) {
|
if (!((int) SVfloat (ent, flags) & (FL_ONGROUND | FL_FLY | FL_SWIM))) {
|
||||||
if (SVvector (ent, velocity)[2] < movevars.gravity * -0.1)
|
if (SVvector (ent, velocity)[2] < sv_gravity->value * -0.1)
|
||||||
hitsound = true;
|
hitsound = true;
|
||||||
else
|
else
|
||||||
hitsound = false;
|
hitsound = false;
|
||||||
|
|
Loading…
Reference in a new issue