From ebb2d9eb46294098dfdb089cb6cdd42cc56f04a2 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 2 Jan 2017 01:12:46 +0000 Subject: [PATCH] Fix rogue mission pack (Dissolution of Eternity) plasma launcher which uses velocity so small initially that SV_CheckVelocity was zeroing it in the denormal check - the threshold has been lowered by 3 digits since this was really only meant to detect denormals, not mess with real numbers thanks to Roman for this bug report git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12316 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_phys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sv_phys.c b/sv_phys.c index ba15499a..4ad211bc 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -1036,7 +1036,7 @@ void SV_CheckVelocity (prvm_edict_t *ent) // LordHavoc: a hack to ensure that the (rather silly) id1 quakec // player_run/player_stand1 does not horribly malfunction if the // velocity becomes a denormalized float - if (VectorLength2(PRVM_serveredictvector(ent, velocity)) < 0.0001) + if (VectorLength2(PRVM_serveredictvector(ent, velocity)) < 0.0000001) VectorClear(PRVM_serveredictvector(ent, velocity)); // LordHavoc: max velocity fix, inspired by Maddes's source fixes, but this is faster -- 2.39.2