X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=world.c;h=6cc992fe580f0be38d808a8e18479b8ebd87efe5;hb=0637e66edf8411d7fba2ea8c2d6df19ee5fc4e7f;hp=cdf9451802385753343243c000271fbdcf8c69e0;hpb=5bdc0879026939f551a3ff217064732d59731be2;p=xonotic%2Fdarkplaces.git diff --git a/world.c b/world.c index cdf94518..6cc992fe 100644 --- a/world.c +++ b/world.c @@ -505,6 +505,8 @@ trace_t SV_ClipMoveToEntity(edict_t *ent, const vec3_t start, const vec3_t mins, } else Collision_ClipTrace_Box(&trace, ent->v->mins, ent->v->maxs, starttransformed, mins, maxs, endtransformed, SUPERCONTENTS_SOLID, SUPERCONTENTS_SOLID); + trace.fraction = bound(0, trace.fraction, 1); + trace.realfraction = bound(0, trace.realfraction, 1); if (trace.fraction < 1) {