From: divverent Date: Mon, 3 Aug 2015 16:48:44 +0000 (+0000) Subject: Only abort the move of a MOVETYPE_TOSS entity if it is actually supposed to X-Git-Tag: xonotic-v0.8.5~88^2~103 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=84e21233e4e9e692431554f995281b6bb5739026 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 --- 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; } }