From ea1f452b993e55bcd875ab970932d7baa53acd12 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 27 Nov 2012 06:06:25 +0000 Subject: [PATCH] Small compile fixes. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4153 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_main.c | 6 +++++- engine/client/m_download.c | 2 +- engine/client/net_master.c | 2 ++ engine/client/pr_skelobj.c | 4 +--- engine/dotnet2005/ftequake.vcproj | 19 ------------------- engine/qclib/pr_exec.c | 4 ++-- 6 files changed, 11 insertions(+), 26 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 814b60408..4f79df662 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -3580,7 +3580,11 @@ double Host_Frame (double time) maxfps = 4; } - if (maxfps > 0 && Media_Capturing() != 2) + if (maxfps > 0 +#if !defined(NOMEDIA) + && Media_Capturing() != 2 +#endif + ) { realtime += spare/1000; //don't use it all! spare = CL_FilterTime((realtime - oldrealtime)*1000, maxfps, maxfpsignoreserver); diff --git a/engine/client/m_download.c b/engine/client/m_download.c index 8910f7684..86de4a2d4 100644 --- a/engine/client/m_download.c +++ b/engine/client/m_download.c @@ -803,7 +803,7 @@ void Menu_DownloadStuff_f (void) #endif -#ifdef AVAIL_ZLIB +#if defined(AVAIL_ZLIB) && defined(WEBCLIENT) static int numbootdownloads; #include "fs.h" diff --git a/engine/client/net_master.c b/engine/client/net_master.c index a152624e4..a1db5a1e0 100644 --- a/engine/client/net_master.c +++ b/engine/client/net_master.c @@ -644,8 +644,10 @@ void MasterInfo_Shutdown(void) { mast = master; master = mast->next; +#ifdef WEBCLIENT if (mast->dl) DL_Close(mast->dl); +#endif Z_Free(mast); } diff --git a/engine/client/pr_skelobj.c b/engine/client/pr_skelobj.c index 674c1a348..17d0adbe3 100644 --- a/engine/client/pr_skelobj.c +++ b/engine/client/pr_skelobj.c @@ -671,7 +671,6 @@ void rag_uninstanciate(skelobject_t *sko) qboolean rag_instanciate(skelobject_t *sko, doll_t *doll, float *emat, wedict_t *ent) { int i; - vec3_t org, porg; float *bmat; float bodymat[12], worldmat[12]; vec3_t aaa2[3]; @@ -705,7 +704,7 @@ qboolean rag_instanciate(skelobject_t *sko, doll_t *doll, float *emat, wedict_t bone = j->bonepivot; bmat = sko->bonematrix + bone*12; - R_ConcatTransforms(bmat, j->orgmatrix, bodymat); + R_ConcatTransforms((void*)bmat, (void*)j->orgmatrix, (void*)bodymat); R_ConcatTransforms((void*)emat, (void*)bodymat, (void*)worldmat); aaa2[0][0] = worldmat[3]; aaa2[0][1] = worldmat[3+4]; @@ -871,7 +870,6 @@ void QCBUILTIN PF_skel_create (progfuncs_t *prinst, struct globalvars_s *pr_glob model_t *model; int midx; int type; - int i; midx = G_FLOAT(OFS_PARM0); type = (*prinst->callargc > 1)?G_FLOAT(OFS_PARM1):SKOT_RELATIVE; diff --git a/engine/dotnet2005/ftequake.vcproj b/engine/dotnet2005/ftequake.vcproj index 740abbeed..717a0e1ac 100644 --- a/engine/dotnet2005/ftequake.vcproj +++ b/engine/dotnet2005/ftequake.vcproj @@ -4949,7 +4949,6 @@ >