X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=model_brush.c;h=8f907bfb7198aa289bfe6f8289eae5ac325dbbc9;hp=75398747848c6a7b10abca21dfda967e9cfe4e59;hb=80b09064d8227075b6e9c4dfe4b007c6676082f5;hpb=838cf5a31bc043624d12b3543e24cc21468abb6f diff --git a/model_brush.c b/model_brush.c index 75398747..8f907bfb 100644 --- a/model_brush.c +++ b/model_brush.c @@ -614,6 +614,7 @@ RecursiveHullCheckTraceInfo_t; #define HULLCHECKSTATE_SOLID 1 #define HULLCHECKSTATE_DONE 2 +extern cvar_t collision_prefernudgedfraction; static int Mod_Q1BSP_RecursiveHullCheck(RecursiveHullCheckTraceInfo_t *t, int num, double p1f, double p2f, double p1[3], double p2[3]) { // status variables, these don't need to be saved on the stack when @@ -768,6 +769,9 @@ loc0: midf = (t1 - DIST_EPSILON) / (t1 - t2); t->trace->fraction = bound(0, midf, 1); + if (collision_prefernudgedfraction.integer) + t->trace->realfraction = t->trace->fraction; + #if COLLISIONPARANOID >= 3 Con_Print("D"); #endif