]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix Q3BSP map loader's sky surface detection so that it doesn't assume all submodels...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 9 Feb 2007 01:19:05 +0000 (01:19 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 9 Feb 2007 01:19:05 +0000 (01:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6810 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 5339df4cca61396fe89e4e9470fc860a8912ba22..a35aefc2c84828115c1bbb4439aebd85d55fb7a3 100644 (file)
@@ -5887,6 +5887,8 @@ void Mod_Q3BSP_Load(model_t *mod, void *buffer, void *bufferend)
                                break;
                if (j < mod->nummodelsurfaces)
                        mod->DrawSky = R_Q1BSP_DrawSky;
+               else
+                       mod->DrawSky = NULL;
        }
 }