From 6b31e3a96fb3b4260f356674d5c1011b631dea7d Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 3 Aug 2015 16:48:44 +0000 Subject: [PATCH] Only abort the move of a MOVETYPE_TOSS entity if it is actually supposed to stop moving. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12218 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=84e21233e4e9e692431554f995281b6bb5739026 --- sv_phys.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sv_phys.c b/sv_phys.c index c84f0c15..3d7bf81e 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -2713,10 +2713,14 @@ void SV_Physics_Toss (prvm_edict_t *ent) ent->priv.server->suspendedinairflag = true; VectorClear (PRVM_serveredictvector(ent, velocity)); VectorClear (PRVM_serveredictvector(ent, avelocity)); + movetime = 0; } else + { PRVM_serveredictfloat(ent, flags) = (int)PRVM_serveredictfloat(ent, flags) & ~FL_ONGROUND; - movetime = 0; + if (!sv_gameplayfix_slidemoveprojectiles.integer) + movetime = 0; + } break; } } -- 2.39.2