]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - collision.h
play silence during timedemos
[xonotic/darkplaces.git] / collision.h
index 339f1aaa18ae1e179ca076b961d40cf745a9cdde..67b5eaa2e0cd84c22a524e2321428658a616525f 100644 (file)
@@ -138,6 +138,9 @@ void Collision_ClipToWorld(trace_t *trace, dp_model_t *model, const vec3_t start
 // updates fraction, endpos, plane and surface info if new fraction is shorter
 void Collision_CombineTraces(trace_t *cliptrace, const trace_t *trace, void *touch, qboolean isbmodel);
 
+// shorten a trace by the given factor
+void Collision_ShortenTrace(trace_t *trace, float shorten_factor, const vec3_t end);
+
 // this enables rather large debugging spew!
 // settings:
 // 0 = no spew
@@ -146,4 +149,8 @@ void Collision_CombineTraces(trace_t *cliptrace, const trace_t *trace, void *tou
 // 3 = spew detailed trace flow (bsp tree recursion info)
 #define COLLISIONPARANOID 0
 
+// make every trace 1qu longer, and shorten the result, to work around a stupid bug somewhere
+#define COLLISION_STUPID_TRACE_ENDPOS_IN_SOLID_WORKAROUND
+
+
 #endif