From: havoc Date: Mon, 2 Jan 2017 01:12:46 +0000 (+0000) Subject: Fix rogue mission pack (Dissolution of Eternity) plasma launcher which X-Git-Tag: xonotic-v0.8.5~88^2~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ebb2d9eb46294098dfdb089cb6cdd42cc56f04a2;p=xonotic%2Fdarkplaces.git 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 --- 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