]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_phys.c
q3bsp curve collisions (technically it can collide against any triangle mesh)
[xonotic/darkplaces.git] / sv_phys.c
index 2bae3238dffca03227e9463f8de1e2eaf9a32848..6cfa187eb309eb91b1466ee978484eec52750ff7 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -521,7 +521,7 @@ trace_t SV_PushEntity (edict_t *ent, vec3_t push, vec3_t pushangles)
        ent->v->angles[1] += trace.fraction * pushangles[1];
        SV_LinkEdict (ent, true);
 
-       if (trace.ent && (!((int)ent->v->flags & FL_ONGROUND) || ent->v->groundentity != EDICT_TO_PROG(trace.ent)))
+       if (trace.fraction < 1 && trace.ent && (!((int)ent->v->flags & FL_ONGROUND) || ent->v->groundentity != EDICT_TO_PROG(trace.ent)))
                SV_Impact (ent, trace.ent);
        return trace;
 }