summaryrefslogtreecommitdiff
path: root/source/cmodel.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/cmodel.c')
-rw-r--r--source/cmodel.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/source/cmodel.c b/source/cmodel.c
index 5a499e2..07b7dad 100644
--- a/source/cmodel.c
+++ b/source/cmodel.c
@@ -787,17 +787,19 @@ qboolean CM_LoadMap( cm_t *cm, const char *name, int flags, uint32_t *checksum )
} while( 0 )
// load into heap
- CM_LOAD( Visibility, VISIBILITY );
- CM_LOAD( Surfaces, TEXINFO );
- CM_LOAD( Planes, PLANES );
- CM_LOAD( BrushSides, BRUSHSIDES );
- CM_LOAD( Brushes, BRUSHES );
- CM_LOAD( LeafBrushes, LEAFBRUSHES );
- CM_LOAD( AreaPortals, AREAPORTALS );
- CM_LOAD( Areas, AREAS );
- CM_LOAD( Leafs, LEAFS );
- CM_LOAD( Nodes, NODES );
- CM_LOAD( Submodels, MODELS );
+ if( !( flags & CM_LOAD_ENTONLY ) ) {
+ CM_LOAD( Visibility, VISIBILITY );
+ CM_LOAD( Surfaces, TEXINFO );
+ CM_LOAD( Planes, PLANES );
+ CM_LOAD( BrushSides, BRUSHSIDES );
+ CM_LOAD( Brushes, BRUSHES );
+ CM_LOAD( LeafBrushes, LEAFBRUSHES );
+ CM_LOAD( AreaPortals, AREAPORTALS );
+ CM_LOAD( Areas, AREAS );
+ CM_LOAD( Leafs, LEAFS );
+ CM_LOAD( Nodes, NODES );
+ CM_LOAD( Submodels, MODELS );
+ }
#if 0
// Load the entity string from file, if specified