From a8f4f03e3e7c86d9e6e548f2605a09f7bd962981 Mon Sep 17 00:00:00 2001 From: s1lent Date: Wed, 17 Jan 2018 17:29:03 +0700 Subject: [PATCH] SV_FlyMove: Add impact to MOVETYPE_TOSS (related #555) --- rehlds/engine/sv_phys.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rehlds/engine/sv_phys.cpp b/rehlds/engine/sv_phys.cpp index 6a92721..8f2be63 100644 --- a/rehlds/engine/sv_phys.cpp +++ b/rehlds/engine/sv_phys.cpp @@ -289,6 +289,9 @@ void SV_FlyMove(edict_t *ent, float time, float bounce) if ((ent->v.flags & FL_ONGROUND) && ent->v.movetype == MOVETYPE_TOSS) { VectorClear(ent->v.velocity); + + // run the impact function + SV_Impact(ent, trace.ent, &trace); return; } #endif