]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fix rogue mission pack (Dissolution of Eternity) plasma launcher which
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 2 Jan 2017 01:12:46 +0000 (01:12 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 2 Jan 2017 01:12:46 +0000 (01:12 +0000)
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

index ba15499ad7a0c06f5994b3bc227116aec25b1a95..4ad211bc6053f9e1c3cb79836276915d1aca4e22 100644 (file)
--- 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