From 48d03aff82997aac9e3df4e0aa4f0999821f6293 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 10 May 2012 19:14:25 +0000 Subject: [PATCH] mingl fixes. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4044 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_main.c | 2 +- engine/client/r_surf.c | 2 ++ engine/server/sv_main.c | 6 ++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 9d6be8cfd..ec4998160 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -3826,7 +3826,7 @@ void Host_Init (quakeparms_t *parms) CDAudio_Init (); Sbar_Init (); CL_Init (); -#if defined(SERVERONLY) || !(defined(CSQC_DAT) || defined(MENU_DAT)) +#if defined(CSQC_DAT) || defined(MENU_DAT) PF_Common_RegisterCvars(); #endif diff --git a/engine/client/r_surf.c b/engine/client/r_surf.c index b260389b8..7ef8ffc6c 100644 --- a/engine/client/r_surf.c +++ b/engine/client/r_surf.c @@ -2626,7 +2626,9 @@ void Surf_Clear(model_t *mod) BZ_Free(mod->shadowbatches); mod->numshadowbatches = 0; mod->shadowbatches = NULL; +#ifdef RTLIGHTS Sh_PurgeShadowMeshes(); +#endif } //pick fastest mode for lightmap data diff --git a/engine/server/sv_main.c b/engine/server/sv_main.c index 4e49746e7..e8d3b051f 100644 --- a/engine/server/sv_main.c +++ b/engine/server/sv_main.c @@ -4831,10 +4831,12 @@ void SV_Init (quakeparms_t *parms) #endif COM_Init (); Mod_Init (); - - PF_Common_RegisterCvars(); } +#if !(defined(CSQC_DAT) || defined(MENU_DAT)) + PF_Common_RegisterCvars(); +#endif + PR_Init (); SV_InitNet ();