]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - world.c
changed color codes to match Quake3
[xonotic/darkplaces.git] / world.c
diff --git a/world.c b/world.c
index cdf9451802385753343243c000271fbdcf8c69e0..6cc992fe580f0be38d808a8e18479b8ebd87efe5 100644 (file)
--- 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)
        {