]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
shut up compiler warning
authorsajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 9 Oct 2007 22:19:31 +0000 (22:19 +0000)
committersajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 9 Oct 2007 22:19:31 +0000 (22:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7623 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 806c9f128b9f8c1d460bcb1a62c98a13bb50f84e..4419e79293688d38650fdce33f1dd29ff0ece298 100644 (file)
@@ -828,6 +828,8 @@ static void Mod_Q1BSP_TraceBox(struct model_s *model, int frame, trace_t *trace,
                float vdist, dist;
                int vdisti = 0;
 
                float vdist, dist;
                int vdisti = 0;
 
+               vdist = 0;      // shut up compiler warning
+
        // find the closest hull size (this algorithm probably sucks, a qc field to override it might be in order...)
                for (i = 1; i < model->brushq1.numhulls; i++)
                {
        // find the closest hull size (this algorithm probably sucks, a qc field to override it might be in order...)
                for (i = 1; i < model->brushq1.numhulls; i++)
                {