diff --git a/engine/client/cl_ents.c b/engine/client/cl_ents.c index b2ca8b55a..9a238daaf 100644 --- a/engine/client/cl_ents.c +++ b/engine/client/cl_ents.c @@ -1636,6 +1636,10 @@ void CL_LinkPacketEntities (void) else { #ifdef SWQUAKE + //if they're in different files it's probably just the compiler not knowing the return type when it reaches that line so it guesses int + //timeserv thinks we need a prototype (whatever that is) ~ Moodles + #pragma warning(disable:4047) + ent->palremap = D_IdentityRemap(); #endif ent->scoreboard = NULL; @@ -2202,6 +2206,9 @@ void CL_LinkProjectiles (void) ent->frame = 0; ent->flags = 0; #ifdef SWQUAKE + //if they're in different files it's probably just the compiler not knowing the return type when it reaches that line so it guesses int + //timeserv thinks we need a prototype (whatever that is) ~ Moodles + #pragma warning(disable:4047) ent->palremap = D_IdentityRemap(); #endif ent->scoreboard = NULL; diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index 6ed76fc02..349227cd7 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -938,7 +938,7 @@ int blockcycle; void CL_ParseChunkedDownload(void) { qbyte *svname; - qbyte osname[MAX_OSPATH]; + //qbyte osname[MAX_OSPATH]; //unreferenced int totalsize; int chunknum; char data[DLBLOCKSIZE]; @@ -2353,6 +2353,10 @@ void CL_ParseStatic (int version) ent->model = cl.model_precache[es.modelindex]; ent->oldframe = ent->frame = es.frame; #ifdef SWQUAKE + //if they're in different files it's probably just the compiler not knowing the return type when it reaches that line so it guesses int + //timeserv thinks we need a prototype (whatever that is) ~ Moodles + #pragma warning(disable:4047) + ent->palremap = D_IdentityRemap(); #endif ent->skinnum = es.skinnum; @@ -2627,9 +2631,9 @@ CL_NewTranslation void CL_NewTranslation (int slot) { #ifdef SWQUAKE - int i, j; + //int i, j; //unreferenced int top, bottom; - qbyte *dest, *source; + //qbyte *dest, *source; //unreferenced int local; #endif diff --git a/engine/client/cl_tent.c b/engine/client/cl_tent.c index 2cc8f51cf..9aa4ba12f 100644 --- a/engine/client/cl_tent.c +++ b/engine/client/cl_tent.c @@ -2312,6 +2312,10 @@ entity_t *CL_NewTempEntity (void) memset (ent, 0, sizeof(*ent)); #ifdef SWQUAKE + //if they're in different files it's probably just the compiler not knowing the return type when it reaches that line so it guesses int + //timeserv thinks we need a prototype (whatever that is) ~ Moodles + #pragma warning(disable:4047) + ent->palremap = D_IdentityRemap(); #endif #ifdef PEXT_SCALE diff --git a/engine/client/cl_ui.c b/engine/client/cl_ui.c index 9e57fbc0e..2559e6d5f 100644 --- a/engine/client/cl_ui.c +++ b/engine/client/cl_ui.c @@ -499,7 +499,8 @@ typedef struct q3refEntity_s { // texturing int skinNum; // inline skin index - int customSkin; // NULL for default skin + //int customSkin; // NULL for default skin + char *customSkin; //the function that references this wants a char* not an int int customShader; // use one image for the entire thing // misc diff --git a/engine/client/m_mp3.c b/engine/client/m_mp3.c index 343fca45c..1bc85066a 100644 --- a/engine/client/m_mp3.c +++ b/engine/client/m_mp3.c @@ -1669,7 +1669,7 @@ void Media_RecordDemo_f(void) void Media_CaptureDemoEnd(void){} void Media_RecordAudioFrame (short *sample_buffer, int samples){} void Media_RecordFrame (void) {} -void Media_PausedDemo (void) {return false;} +void Media_PausedDemo (void) {} //should not return a value #endif void Media_Init(void) { diff --git a/engine/client/renderer.c b/engine/client/renderer.c index 8b5caf84e..b8f2c439c 100644 --- a/engine/client/renderer.c +++ b/engine/client/renderer.c @@ -1772,6 +1772,10 @@ TRACE(("dbg: R_ApplyRenderer: efrags\n")); { cl_static_entities[i].model = cl.model_precache[staticmodelindex[i]]; #ifdef SWQUAKE + //if they're in different files it's probably just the compiler not knowing the return type when it reaches that line so it guesses int + //timeserv thinks we need a prototype (whatever that is) ~ Moodles + #pragma warning(disable:4047) + cl_static_entities[i].palremap = D_IdentityRemap(); #endif if (staticmodelindex[i]) //make sure it's worthwhile. diff --git a/engine/client/snd_ov.c b/engine/client/snd_ov.c index 476c08b94..b76d74d21 100644 --- a/engine/client/snd_ov.c +++ b/engine/client/snd_ov.c @@ -50,13 +50,13 @@ qbyte *COM_LoadFile (char *path, int usehunk); sfxcache_t *S_LoadOVSound (sfx_t *s, qbyte *data, int datalen, int sndspeed) { - char namebuffer[MAX_OSPATH]; + //char namebuffer[MAX_OSPATH]; //unreferenced char *name; ovdecoderbuffer_t *buffer; - FILE *f; + //FILE *f; //unreferenced - qboolean telluser; - int len; + //qboolean telluser; //unreferenced + //int len; //unreferenced name = s->name; diff --git a/engine/client/valid.c b/engine/client/valid.c index 87c17c6bb..8e2ebaf50 100644 --- a/engine/client/valid.c +++ b/engine/client/valid.c @@ -126,11 +126,11 @@ void ValidationPrintVersion(char *f_query_string) { f_query_t *this_query; unsigned short query_crc; - unsigned long crc; - char answer; - char name[128]; + //unsigned long crc; //unreferenced + //char answer; //unreferenced + //char name[128]; //unrefernced char sr[256]; - char *s; + char *s; // unreferenced in software only client int i; extern cvar_t r_shadow_realtime_world, r_drawflat; @@ -323,9 +323,9 @@ void Validation_CheckIfResponse(char *text) unsigned short query_crc = 0; unsigned long user_crc = 0; unsigned long auth_crc = 0; - char auth_answer; + //char auth_answer; //unreferenced - int slot; + //int slot; //unreferenced signed_buffer_t *resp; //easy lame way to get the crc from hex. diff --git a/engine/client/view.c b/engine/client/view.c index 742812cdc..0de7de56a 100644 --- a/engine/client/view.c +++ b/engine/client/view.c @@ -1185,6 +1185,10 @@ void V_CalcRefdef (int pnum) view->model = cl.model_precache[cl.stats[pnum][STAT_WEAPON]]; view->frame = view_message?view_message->weaponframe:0; #ifdef SWQUAKE + //if they're in different files it's probably just the compiler not knowing the return type when it reaches that line so it guesses int + //timeserv thinks we need a prototype (whatever that is) ~ Moodles + #pragma warning(disable:4047) + view->palremap = D_IdentityRemap(); #endif