From: havoc Date: Mon, 19 Jan 2004 22:30:46 +0000 (+0000) Subject: ignore visofs errors on leaf 0 (solid), thanks to Vic for pointing out the problem... X-Git-Tag: xonotic-v0.1.0preview~6155 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=4418c8f7875bb156eea684b5a52cc76ab52a66db;p=xonotic%2Fdarkplaces.git ignore visofs errors on leaf 0 (solid), thanks to Vic for pointing out the problem in qbsp itself git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3815 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index 13b4df27..1ede5d8c 100644 --- a/model_brush.c +++ b/model_brush.c @@ -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");