mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 03:51:32 +00:00
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:
parent
01223bf12f
commit
d398af48b2
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue