From 46eaeabbc60e6e538ec61f29fbdac940878dd875 Mon Sep 17 00:00:00 2001 From: Eukara Date: Mon, 18 Jan 2021 22:18:09 +0000 Subject: [PATCH] Fix config_minimal.h from being unable to compile. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5801 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_main.c | 4 ++++ engine/common/com_mesh.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index f237ff822..9c32d422a 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -4567,7 +4567,9 @@ static char *ShowTime(unsigned int seconds) } void CL_Status_f(void) { +#ifdef CSQC_DAT extern world_t csqc_world; +#endif char adr[128]; float pi, po, bi, bo; @@ -4676,6 +4678,7 @@ void CL_Status_f(void) Con_Printf ("current map : %s (%s)\n", adr, cl.levelname); } +#ifdef CSQC_DAT if (csqc_world.progs) { extern int num_sfx; @@ -4703,6 +4706,7 @@ void CL_Status_f(void) if (cl.csqcdebug) Con_Printf("csqc debug : true\n"); } +#endif Con_Printf("gamedir : %s\n", FS_GetGamedir(true)); } diff --git a/engine/common/com_mesh.c b/engine/common/com_mesh.c index 4cd82b485..7bfafd941 100644 --- a/engine/common/com_mesh.c +++ b/engine/common/com_mesh.c @@ -2169,6 +2169,7 @@ void Mod_AddSingleSurface(entity_t *ent, int surfaceidx, shader_t *shader, qbool posedata = m->xyz_array; normdata = normals?m->normals_array:NULL; +#ifdef SKELETALMODELS if (m->numbones) { //intended shader might have caused it to use skeletal stuff. //we're too lame for that though. @@ -2182,6 +2183,7 @@ void Mod_AddSingleSurface(entity_t *ent, int surfaceidx, shader_t *shader, qbool Alias_TransformVerticies_V(m->bones, m->numvertexes, m->bonenums[0], m->boneweights[0], m->xyz_array[0], posedata[0]); } else +#endif { if (m->xyz_blendw[1] == 1 && m->xyz2_array) posedata = m->xyz2_array;