diff --git a/engine/common/mod_studio.c b/engine/common/mod_studio.c index b8c0ede6..a20f4fa6 100644 --- a/engine/common/mod_studio.c +++ b/engine/common/mod_studio.c @@ -1065,7 +1065,9 @@ void Mod_LoadStudioModel( model_t *mod, const void *buffer, qboolean *loaded ) } else { +#if !XASH_DEDICATED ref.dllFuncs.Mod_StudioLoadTextures( mod, thdr ); +#endif // give space for textures and skinrefs size1 = thdr->numtextures * sizeof( mstudiotexture_t ); @@ -1092,7 +1094,9 @@ void Mod_LoadStudioModel( model_t *mod, const void *buffer, qboolean *loaded ) loadmodel->cache.data = Mem_Calloc( loadmodel->mempool, phdr->length ); memcpy( loadmodel->cache.data, buffer, phdr->length ); phdr = (studiohdr_t *)loadmodel->cache.data; // get the new pointer on studiohdr +#if !XASH_DEDICATED ref.dllFuncs.Mod_StudioLoadTextures( mod, phdr ); +#endif // NOTE: we wan't keep raw textures in memory. just cutoff model pointer above texture base loadmodel->cache.data = Mem_Realloc( loadmodel->mempool, loadmodel->cache.data, phdr->texturedataindex ); diff --git a/engine/common/pm_surface.c b/engine/common/pm_surface.c index b4c38f22..552f273c 100644 --- a/engine/common/pm_surface.c +++ b/engine/common/pm_surface.c @@ -73,6 +73,7 @@ int PM_SampleMiptex( const msurface_t *surf, const vec3_t point ) // TODO: this won't work under dedicated // should we bring up imagelib and keep original buffers? +#if !XASH_DEDICATED if( !Host_IsDedicated() ) { const byte *data; @@ -94,6 +95,7 @@ int PM_SampleMiptex( const msurface_t *surf, const vec3_t point ) return CONTENTS_EMPTY; return CONTENTS_SOLID; } +#endif // !XASH_DEDICATED return contents; } diff --git a/public/xash3d_mathlib.h b/public/xash3d_mathlib.h index 944bf92b..34a1e16b 100644 --- a/public/xash3d_mathlib.h +++ b/public/xash3d_mathlib.h @@ -21,7 +21,11 @@ GNU General Public License for more details. #include #endif +#include "build.h" + +#ifdef XASH_MSVC #pragma warning(disable : 4201) // nonstandard extension used +#endif // euler angle order #define PITCH 0