]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
use one markframe variable
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 4 Oct 2009 02:07:05 +0000 (02:07 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 4 Oct 2009 02:07:05 +0000 (02:07 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9296 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 213a0be4b271c1d2e7e3feec33daf9e17d375549..ac8f68a2335cb1cb6c3a4214e540843aad635e1a 100644 (file)
@@ -5813,10 +5813,11 @@ static void Mod_Q3BSP_TraceBrush_RecursiveBSPNode(trace_t *trace, dp_model_t *mo
        }
 }
 
+static int markframe = 0;
+
 static void Mod_Q3BSP_TracePoint(dp_model_t *model, int frame, trace_t *trace, const vec3_t start, int hitsupercontentsmask)
 {
        int i;
-       static int markframe = 0x80000000;
        q3mbrush_t *brush;
        memset(trace, 0, sizeof(*trace));
        trace->fraction = 1;
@@ -5836,7 +5837,6 @@ static void Mod_Q3BSP_TraceLine(dp_model_t *model, int frame, trace_t *trace, co
 {
        int i;
        float segmentmins[3], segmentmaxs[3];
-       static int markframe = 0x40000000;
        msurface_t *surface;
        q3mbrush_t *brush;
 
@@ -5874,7 +5874,6 @@ static void Mod_Q3BSP_TraceBox(dp_model_t *model, int frame, trace_t *trace, con
 {
        int i;
        float segmentmins[3], segmentmaxs[3];
-       static int markframe = 0;
        msurface_t *surface;
        q3mbrush_t *brush;
        colbrushf_t *thisbrush_start, *thisbrush_end;