mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-20 01:11:18 +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);
|
||||
else
|
||||
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 */
|
||||
|
@ -713,7 +713,7 @@ SV_Physics_Step (edict_t *ent)
|
|||
|
||||
// freefall if not on ground
|
||||
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;
|
||||
else
|
||||
hitsound = false;
|
||||
|
|
Loading…
Reference in a new issue