Warning fixes

This commit is contained in:
Richard Allen 2002-04-05 18:53:26 +00:00
parent d38246e89f
commit b355a8b0f5
5 changed files with 23 additions and 8 deletions

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.64 2002/04/05 18:53:26 jbravo
// Warning fixes
//
// Revision 1.63 2002/04/03 03:13:49 blaze
// NEW BREAKABLE CODE - will break all old breakables(wont appear in maps)
//
@ -3599,8 +3602,8 @@ static void CG_ShotgunPattern( vec3_t origin, vec3_t origin2, int otherEntNum, i
vec3_t end;
vec3_t forward, right, up;
int count;
int hc_multipler;
int count;
int hc_multipler = 0;
// derive the right and up vectors from the forward vector, because
// the client won't have any other information

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.61 2002/04/05 18:53:26 jbravo
// Warning fixes
//
// Revision 1.60 2002/04/03 03:13:16 blaze
// NEW BREAKABLE CODE - will break all old breakables(wont appear in maps)
//
@ -1257,7 +1260,7 @@ and on transition between teams, but doesn't happen on respawns
void ClientBegin(int clientNum) {
gentity_t *ent;
gclient_t *client;
int flags, savedPing, i;
int flags, savedPing = 0, i;
int savedPers[MAX_PERSISTANT];
ent = g_entities + clientNum;
@ -1709,7 +1712,7 @@ server system housekeeping.
void ClientDisconnect( int clientNum ) {
gentity_t *ent;
gentity_t *tent;
int oldTeam, i;
int oldTeam = 0, i;
// cleanup if we are kicking a bot that
// hasn't spawned yet

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.89 2002/04/05 18:53:26 jbravo
// Warning fixes
//
// Revision 1.88 2002/04/01 22:23:14 slicer
// Added "weapon" command buffering | Solved Gren Mode Bug
//
@ -754,8 +757,8 @@ void SetTeam( gentity_t *ent, char *s )
{
int team, oldTeam, clientNum;
gclient_t *client;
spectatorState_t specState;
int specClient, teamLeader, teamsave, x;
spectatorState_t specState = 0;
int specClient = 0, teamLeader, teamsave, x;
//
// see what change is requested

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.33 2002/04/05 18:53:26 jbravo
// Warning fixes
//
// Revision 1.32 2002/04/04 11:20:27 makro
// Pre-caching all weapons in TP
//
@ -1546,7 +1549,7 @@ and respawns it.
==============
*/
void RQ3_ResetWeapon( int weapon ) {
char *c;
char *c ="";
gentity_t *ent; //, *rent = NULL;
int numRespawned = 0;
int numRemoved = 0;

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.24 2002/04/05 18:53:26 jbravo
// Warning fixes
//
// Revision 1.23 2002/03/18 19:18:39 slicer
// Fixed bandage bugs ( i hope )
//
@ -737,7 +740,7 @@ fire_grenade
*/
gentity_t *fire_grenade (gentity_t *self, vec3_t start, vec3_t dir) {
gentity_t *bolt;
int speed;
int speed = 0;
vec3_t up, right;
if (self->client)