Fix movevars.entgravity not set. Reported by GoaLitiuM.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5418 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2019-02-25 06:40:26 +00:00
parent 01223bf12f
commit d398af48b2
1 changed files with 7 additions and 0 deletions

View File

@ -3578,6 +3578,13 @@ static void QCBUILTIN PF_cs_runplayerphysics (pubprogfuncs_t *prinst, struct glo
pmove.safeorigin_known = false;
pmove.capsule = false; //FIXME
if (ent->xv->gravity)
movevars.entgravity = ent->xv->gravity;
else if (csqc_playerseat >= 0 && cl.playerview[csqc_playerseat].playernum+1 == ent->xv->entnum)
movevars.entgravity = cl.playerview[csqc_playerseat].entgravity;
else
movevars.entgravity = 1;
if (ent->xv->entnum)
pmove.skipent = ent->xv->entnum;
else