From decd71cb1e40d423b0a1dd091d5e450bc60a5dc0 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Wed, 19 Mar 2008 23:42:53 +0000 Subject: Added `mvd_default_map' variable. Added `!p' previous target specifier to `follow' command. --- source/cmodel.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'source/cmodel.c') 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 -- cgit v1.2.3