In M_CheckGround() use the trace velocity.

I have no clue what this is about. But when in doupt baseq2 is right...
:) This was reported by maraakate in yquake2 issue #160.
This commit is contained in:
Yamagi Burmeister 2016-12-17 10:30:53 +01:00
parent f893d5f8d0
commit 89d48af99d

View file

@ -300,7 +300,7 @@ M_CheckGround(edict_t *ent)
VectorCopy(trace.endpos, ent->s.origin); VectorCopy(trace.endpos, ent->s.origin);
ent->groundentity = trace.ent; ent->groundentity = trace.ent;
ent->groundentity_linkcount = trace.ent->linkcount; ent->groundentity_linkcount = trace.ent->linkcount;
ent->velocity[2] = 0; ent->velocity[2] = trace.ent->velocity[2];
} }
} }