-/*
+/* -------------------------------------------------------------------------------
+
Copyright (C) 1999-2007 id Software, Inc. and contributors.
For a list of contributors, see the accompanying CONTRIBUTORS file.
ds->lightmapScale = lightmapScale;
/* force to meta? */
- if( si != NULL && si->forceMeta )
+ if( (si != NULL && si->forceMeta) || (spawnFlags & 4) ) /* 3rd bit */
ds->type = SURFACE_FORCED_META;
/* set particulars */
}
/* normal texture coordinates */
+ else
{
st = PicoGetSurfaceST( surface, 0, i );
dv->st[ 0 ] = st[ 0 ];
/* set cel shader */
ds->celShader = celShader;
- /* finish surface */
- FinishSurface( ds );
-
/* ydnar: giant hack land: generate clipping brushes for model triangles */
if( si->clipModel || (spawnFlags & 2) ) /* 2nd bit */
{
/* temp hack */
- if( (si->compileFlags & C_TRANSLUCENT) || !(si->compileFlags & C_SOLID) )
+ if( !si->clipModel &&
+ ((si->compileFlags & C_TRANSLUCENT) || !(si->compileFlags & C_SOLID)) )
continue;
/* overflow check */