]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix dpmod shell casings spinning on the floor by disabling the
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 31 Oct 2011 06:52:07 +0000 (06:52 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 31 Oct 2011 08:01:33 +0000 (09:01 +0100)
velocity-change-is-a-teleport logic in SV_PushEntity

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11494 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3c0cb1c10dcd023d633ef18a24d458d7a3bdc1de

sv_phys.c

index d55bf751a2e490c3bf7fe6d889162dfcb8cfdac4..db9b4fa06ee60fdd789bd7167672dd05c18ccaa0 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -1659,7 +1659,7 @@ static qboolean SV_PushEntity (trace_t *trace, prvm_edict_t *ent, vec3_t push, q
        if((PRVM_serveredictfloat(ent, solid) >= SOLID_TRIGGER && trace->ent && (!((int)PRVM_serveredictfloat(ent, flags) & FL_ONGROUND) || PRVM_serveredictedict(ent, groundentity) != PRVM_EDICT_TO_PROG(trace->ent))))
                SV_Impact (ent, trace);
 
-       return VectorCompare(PRVM_serveredictvector(ent, origin), original) && VectorCompare(PRVM_serveredictvector(ent, velocity), original_velocity);
+       return VectorCompare(PRVM_serveredictvector(ent, origin), original);// && VectorCompare(PRVM_serveredictvector(ent, velocity), original_velocity);
 }