|
|
|
@ -1801,8 +1801,11 @@ static void Mod_LoadTextures( dbspmodel_t *bmod )
@@ -1801,8 +1801,11 @@ static void Mod_LoadTextures( dbspmodel_t *bmod )
|
|
|
|
|
{ |
|
|
|
|
#ifndef XASH_DEDICATED |
|
|
|
|
// release old sky layers first
|
|
|
|
|
if( !Host_IsDedicated() ) |
|
|
|
|
{ |
|
|
|
|
ref.dllFuncs.R_FreeSharedTexture( REF_ALPHASKY_TEXTURE ); |
|
|
|
|
ref.dllFuncs.R_FreeSharedTexture( REF_SOLIDSKY_TEXTURE ); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1827,8 +1830,11 @@ static void Mod_LoadTextures( dbspmodel_t *bmod )
@@ -1827,8 +1830,11 @@ static void Mod_LoadTextures( dbspmodel_t *bmod )
|
|
|
|
|
|
|
|
|
|
Q_strncpy( tx->name, "*default", sizeof( tx->name )); |
|
|
|
|
#ifndef XASH_DEDICATED |
|
|
|
|
if( !Host_IsDedicated() ) |
|
|
|
|
{ |
|
|
|
|
tx->gl_texturenum = ref.dllFuncs.R_GetBuiltinTexture( REF_DEFAULT_TEXTURE ); |
|
|
|
|
tx->width = tx->height = 16; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
continue; // missed
|
|
|
|
|
} |
|
|
|
@ -1869,8 +1875,10 @@ static void Mod_LoadTextures( dbspmodel_t *bmod )
@@ -1869,8 +1875,10 @@ static void Mod_LoadTextures( dbspmodel_t *bmod )
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifndef XASH_DEDICATED |
|
|
|
|
if( !Host_IsDedicated() ) |
|
|
|
|
{ |
|
|
|
|
// check for multi-layered sky texture (quake1 specific)
|
|
|
|
|
if( bmod->isworld && !Q_strncmp( mt->name, "sky", 3 ) && (( mt->width / mt->height ) == 2 )) |
|
|
|
|
if( bmod->isworld && !Q_strncmp( mt->name, "sky", 3 ) && (( mt->width / mt->height ) == 2 ) ) |
|
|
|
|
{ |
|
|
|
|
ref.dllFuncs.R_InitSkyClouds( mt, tx, custom_palette ); // load quake sky
|
|
|
|
|
|
|
|
|
@ -1964,6 +1972,7 @@ static void Mod_LoadTextures( dbspmodel_t *bmod )
@@ -1964,6 +1972,7 @@ static void Mod_LoadTextures( dbspmodel_t *bmod )
|
|
|
|
|
if( src ) Mem_Free( src ); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2242,7 +2251,7 @@ static void Mod_LoadSurfaces( dbspmodel_t *bmod )
@@ -2242,7 +2251,7 @@ static void Mod_LoadSurfaces( dbspmodel_t *bmod )
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifndef XASH_DEDICATED // TODO: Do we need subdivide on server?
|
|
|
|
|
if( FBitSet( out->flags, SURF_DRAWTURB )) |
|
|
|
|
if( FBitSet( out->flags, SURF_DRAWTURB ) && !Host_IsDedicated() ) |
|
|
|
|
ref.dllFuncs.GL_SubdivideSurface( out ); // cut up polygon for warps
|
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|