From 82fcde59e196d100e768a68d4c5cfa079eeea397 Mon Sep 17 00:00:00 2001 From: Molgrum Date: Fri, 5 Oct 2007 19:10:43 +0000 Subject: [PATCH] Cleanup. Fixed the last warnings in GLDebug. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2719 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/client.h | 41 ++++++++++++++++++++--------------------- engine/client/valid.c | 2 +- engine/common/vm.h | 25 ++++++++++++------------- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/engine/client/client.h b/engine/client/client.h index 7dc4a8484..051a42922 100644 --- a/engine/client/client.h +++ b/engine/client/client.h @@ -935,27 +935,26 @@ void vectoangles(vec3_t vec, vec3_t ang); #define TPM_SPECTATOR 4 #define TPM_FAKED 16 -qboolean TP_SoundTrigger(char *message); -char *TP_PlayerName (void); -char *TP_MapName (void); -int TP_CountPlayers (void); -char *TP_PlayerTeam (void); -char *TP_EnemyTeam (void); -char *TP_EnemyName (void); -void TP_StatChanged (int stat, int value); -int TP_CategorizeMessage (char *s, int *offset, player_info_t **plr); -void TP_NewMap (void); -qboolean TP_FilterMessage (char *s); -qboolean TP_CheckSoundTrigger (char *str); -void TP_SearchForMsgTriggers (char *s, int level); - -void TP_ExecTrigger (char *s); -qboolean TP_SuppressMessage(char *buf); - -void TP_Init(void); -void TP_CheckPickupSound(char *s, vec3_t org); -void TP_ParsePlayerInfo(player_state_t *oldstate, player_state_t *state, player_info_t *info); -void CL_Say (qboolean team, char *extra); +void CL_Say (qboolean team, char *extra); +int TP_CategorizeMessage (char *s, int *offset, player_info_t **plr); +void TP_CheckPickupSound(char *s, vec3_t org); +qboolean TP_CheckSoundTrigger (char *str); +int TP_CountPlayers (void); +char* TP_EnemyName (void); +char* TP_EnemyTeam (void); +void TP_ExecTrigger (char *s); +qboolean TP_FilterMessage (char *s); +void TP_Init(void); +char* TP_LocationName (vec3_t location); +char* TP_MapName (void); +void TP_NewMap (void); +void TP_ParsePlayerInfo(player_state_t *oldstate, player_state_t *state, player_info_t *info); +char* TP_PlayerName (void); +char* TP_PlayerTeam (void); +void TP_SearchForMsgTriggers (char *s, int level); +qboolean TP_SoundTrigger(char *message); +void TP_StatChanged (int stat, int value); +qboolean TP_SuppressMessage(char *buf); // // skin.c diff --git a/engine/client/valid.c b/engine/client/valid.c index 7b03d2b4a..c7708c186 100644 --- a/engine/client/valid.c +++ b/engine/client/valid.c @@ -65,7 +65,7 @@ static void Validation_Version(void) { char sr[256]; char *s = sr; - char *auth; + char *auth = ""; char authbuf[256]; extern cvar_t r_shadow_realtime_world, r_drawflat; diff --git a/engine/common/vm.h b/engine/common/vm.h index ccbea8585..c34dc7928 100644 --- a/engine/common/vm.h +++ b/engine/common/vm.h @@ -33,19 +33,18 @@ void *VM_MemoryBase(vm_t *vm); //plugin functions #ifdef PLUGINS -qboolean Plug_Menu_Event(int eventtype, int param); -qboolean Plugin_ExecuteString(void); -void Plug_ResChanged(void); -void Plug_Tick(void); -void Plug_Init(void); - -void Plug_SBar(void); -void Plug_DrawReloadImages(void); -int Plug_ConnectionlessClientPacket(char *buffer, int size); - -qboolean Plug_ChatMessage(char *buffer, int talkernum, int tpflags); -qboolean Plug_ServerMessage(char *buffer, int messagelevel); -qboolean Plug_CenterPrintMessage(char *buffer, int clientnum); +qboolean Plug_CenterPrintMessage(char *buffer, int clientnum); +qboolean Plug_ChatMessage(char *buffer, int talkernum, int tpflags); +void Plug_Command_f(void); +int Plug_ConnectionlessClientPacket(char *buffer, int size); +void Plug_DrawReloadImages(void); +void Plug_Init(void); +qboolean Plug_Menu_Event(int eventtype, int param); +void Plug_ResChanged(void); +void Plug_SBar(void); +qboolean Plug_ServerMessage(char *buffer, int messagelevel); +void Plug_Tick(void); +qboolean Plugin_ExecuteString(void); #endif