From fe0f0ad86f85b017f7d1f6acb9557ec8a64aeb15 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Sat, 17 Dec 2016 11:05:52 +0100 Subject: [PATCH] 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. --- src/g_monster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_monster.c b/src/g_monster.c index 0d7dfba..58b63b6 100644 --- a/src/g_monster.c +++ b/src/g_monster.c @@ -425,7 +425,7 @@ M_CheckGround(edict_t *ent) VectorCopy(trace.endpos, ent->s.origin); ent->groundentity = trace.ent; ent->groundentity_linkcount = trace.ent->linkcount; - ent->velocity[2] = 0; + ent->velocity[2] = trace.ent->velocity[2]; } }