]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
ignore visofs errors on leaf 0 (solid), thanks to Vic for pointing out the problem...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 19 Jan 2004 22:30:46 +0000 (22:30 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 19 Jan 2004 22:30:46 +0000 (22:30 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3815 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 13b4df27a227aedfe6ac3ede1aba90fcf226a8a4..1ede5d8c588036458d08f2c9c4e1d5f299ddfe28 100644 (file)
@@ -1999,7 +1999,7 @@ static void Mod_Q1BSP_LoadLeafs(lump_t *l)
                pvs += pvschainbytes;
 
                p = LittleLong(in->visofs);
-               if (p >= 0)
+               if (p >= 0 && i > 0) // ignore visofs errors on leaf 0 (solid)
                {
                        if (p >= loadmodel->brushq1.num_compressedpvs)
                                Con_Printf("Mod_Q1BSP_LoadLeafs: invalid visofs\n");