]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix bug that makes lava bridge in e1m6 kill you (as if you're in the
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 6 Mar 2008 14:34:17 +0000 (14:34 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 6 Mar 2008 14:34:17 +0000 (14:34 +0000)
lava it came out of), thanks to Lardarse for reporting this

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8191 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 84e323990710f7083e1345186652583838564508..53da2329010af16d761380199e9ac85cb07222a2 100644 (file)
@@ -887,7 +887,7 @@ static int Mod_Q1BSP_PointSuperContents(struct model_s *model, int frame, const
 {
        int num = 0;
        mplane_t *plane;
-       mclipnode_t *nodes = model->brushq1.hulls[0].clipnodes;
+       mclipnode_t *nodes = model->brushq1.hulls[0].clipnodes + model->brushq1.hulls[0].firstclipnode;
        mplane_t *planes = model->brushq1.hulls[0].planes;
        while (num >= 0)
        {