]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - collision.c
get rid of yet another entity_frame_t on the stack, this is the last one, hopefully...
[xonotic/darkplaces.git] / collision.c
index 01904128dcdead51fa278538459cf78dbac82bb6..7ed1291eaf18c06a3ecce7840bd6c11529c0716c 100644 (file)
@@ -380,6 +380,7 @@ void Collision_ClipTrace (trace_t *trace, const void *cent, const model_t *cmode
                        RecursiveHullCheck (&rhc, rhc.hull->firstclipnode, 0, 1, rhc.start, rhc.end);
                else
                        RecursiveHullCheckPoint (&rhc, rhc.hull->firstclipnode);
+               if (rhc.trace->fraction < 0 || rhc.trace->fraction > 1) Con_Printf("fraction out of bounds %f %s:%d\n", rhc.trace->fraction, __LINE__, __FILE__);
 
                // if we hit, unrotate endpos and normal, and store the entity we hit
                if (rhc.trace->fraction != 1)
@@ -422,6 +423,7 @@ void Collision_ClipTrace (trace_t *trace, const void *cent, const model_t *cmode
                        RecursiveHullCheck (&rhc, rhc.hull->firstclipnode, 0, 1, rhc.start, rhc.end);
                else
                        RecursiveHullCheckPoint (&rhc, rhc.hull->firstclipnode);
+               if (rhc.trace->fraction < 0 || rhc.trace->fraction > 1) Con_Printf("fraction out of bounds %f %s:%d\n", rhc.trace->fraction, __LINE__, __FILE__);
 
                // if we hit, store the entity we hit
                if (rhc.trace->fraction != 1)