From d4cc9a9206af5f6f7d5465016b08e803943086b4 Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Wed, 11 May 2005 03:13:17 +0000 Subject: [PATCH] fix some warnings git-svn-id: svn://svn.icculus.org/nexuiz/trunk@395 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- qcsrc/gamec/bot.c | 6 +++--- qcsrc/gamec/bot_ai.c | 6 ++---- qcsrc/gamec/bot_fight.c | 2 +- qcsrc/gamec/bot_misc.c | 4 +++- qcsrc/gamec/bot_move.c | 2 +- qcsrc/gamec/bot_phys.c | 2 +- qcsrc/gamec/cl_weaponsystem.c | 2 +- qcsrc/gamec/g_decors.c | 1 - qcsrc/gamec/g_triggers.c | 3 --- qcsrc/gamec/sv_stats.c | 4 ++-- qcsrc/gamec/w_common.c | 2 +- 11 files changed, 15 insertions(+), 19 deletions(-) diff --git a/qcsrc/gamec/bot.c b/qcsrc/gamec/bot.c index d25581913..fb8d7c725 100644 --- a/qcsrc/gamec/bot.c +++ b/qcsrc/gamec/bot.c @@ -106,7 +106,7 @@ for all variable in the bot... // ----- entity fields --- .float wallhug, keys, oldkeys, ishuman; .float b_frags, b_clientno, b_shirt, b_pants; -.float priority, ai_time, b_sound, missile_speed; +.float ai_time, b_sound, missile_speed; .float portal_time, b_skill, switch_wallhug; .float b_aiflags, b_num, b_chattime; .float b_menu, b_menu_time, b_menu_value; @@ -116,7 +116,7 @@ for all variable in the bot... .entity target1, target2, target3, target4; .entity _next, _last; .entity current_way; -.vector b_angle, b_dest, mouse_emu, obs_dir; +.vector b_angle, mouse_emu, obs_dir; .vector movement, b_dir; .vector dyn_dest; @@ -255,7 +255,7 @@ void() BotImpulses; void(entity targ, float success) bot_lost; string(float r) BotName; float(float v) frik_anglemod; -void() bot_chat; +//void() bot_chat; void(float tpic) bot_start_topic; diff --git a/qcsrc/gamec/bot_ai.c b/qcsrc/gamec/bot_ai.c index 506170d25..3b0c6b7e4 100644 --- a/qcsrc/gamec/bot_ai.c +++ b/qcsrc/gamec/bot_ai.c @@ -506,9 +506,7 @@ confused void() bot_path = { - local entity jj, tele; - local vector org; bot_check_lost(self.target1); if (!self.target1) @@ -1030,6 +1028,6 @@ void() BotAI = if (self.b_aiflags) bot_handle_ai(); - else - bot_chat(); // don't want chat to screw him up if he's rjing or something + //else + // bot_chat(); // don't want chat to screw him up if he's rjing or something }; diff --git a/qcsrc/gamec/bot_fight.c b/qcsrc/gamec/bot_fight.c index 1aaa49e0e..03c23c913 100644 --- a/qcsrc/gamec/bot_fight.c +++ b/qcsrc/gamec/bot_fight.c @@ -79,7 +79,7 @@ float(entity e) bot_size_player = void() bot_dodge_stuff = { local entity foe; - local float foedist, avdist, scandist, foesz, flen, tsz; + local float foedist, avdist, foesz, flen, tsz; local vector v; if (waypoint_mode > WM_LOADED) diff --git a/qcsrc/gamec/bot_misc.c b/qcsrc/gamec/bot_misc.c index 1f30c1b7f..e88e6d339 100644 --- a/qcsrc/gamec/bot_misc.c +++ b/qcsrc/gamec/bot_misc.c @@ -268,10 +268,11 @@ void(float tpic) bot_start_topic = b_topic = 0; }; +/* void() bot_chat = { local float r; -// if (b_options & OPT_NOCHAT) + if (b_options & OPT_NOCHAT) return; r = ceil (random() * 6); @@ -583,6 +584,7 @@ void() bot_chat = } } }; +*/ /* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= diff --git a/qcsrc/gamec/bot_move.c b/qcsrc/gamec/bot_move.c index 5d816717d..40c60bcad 100644 --- a/qcsrc/gamec/bot_move.c +++ b/qcsrc/gamec/bot_move.c @@ -406,7 +406,7 @@ blah void() frik_movetogoal = { - local vector way, start, stop, ang; + local vector way; local float g; if (self.target1 == world) diff --git a/qcsrc/gamec/bot_phys.c b/qcsrc/gamec/bot_phys.c index 2ec8afe2b..0fe4fc2da 100644 --- a/qcsrc/gamec/bot_phys.c +++ b/qcsrc/gamec/bot_phys.c @@ -135,7 +135,7 @@ Stuff mimicking sv_user.c */ void() SV_UserFriction = { - local vector vel, start, stop; + local vector vel; local float sped, friction, newspeed; vel = self.velocity; diff --git a/qcsrc/gamec/cl_weaponsystem.c b/qcsrc/gamec/cl_weaponsystem.c index 34aa9dfe5..db8513eca 100644 --- a/qcsrc/gamec/cl_weaponsystem.c +++ b/qcsrc/gamec/cl_weaponsystem.c @@ -179,7 +179,7 @@ float(entity e) w_getbestweapon // Setup weapon for client (after this raise frame will be launched) void(float windex, string wmodel, float hudammo) weapon_setup = { - local string wdir, weaponmdl; + local string weaponmdl; self.items = self.items - (self.items & (IT_SHELLS | IT_NAILS | IT_ROCKETS | IT_CELLS)); self.items = self.items | hudammo; diff --git a/qcsrc/gamec/g_decors.c b/qcsrc/gamec/g_decors.c index 7547fb62c..5b5c1fb85 100644 --- a/qcsrc/gamec/g_decors.c +++ b/qcsrc/gamec/g_decors.c @@ -3,7 +3,6 @@ float maxclients; // set by worldspawn code float numdecors; float maxdecors; .float createdtime; -.void() th_gib; //void(vector org, entity en, vector dir, float splattype, float importance) newbloodsplat; //void(vector org, float bodydamage, float armordamage, vector vel, float damgtype) genericbleedfunc; diff --git a/qcsrc/gamec/g_triggers.c b/qcsrc/gamec/g_triggers.c index 276a20ce8..040a89f76 100644 --- a/qcsrc/gamec/g_triggers.c +++ b/qcsrc/gamec/g_triggers.c @@ -103,7 +103,6 @@ void() SUB_UseTargets = }; -entity stemp, otemp, s, old; void() trigger_reactivate = @@ -298,8 +297,6 @@ void() trigger_relay = void() counter_use = { - local string junk; - self.count = self.count - 1; if (self.count < 0) return; diff --git a/qcsrc/gamec/sv_stats.c b/qcsrc/gamec/sv_stats.c index bd1188c26..0924cbac2 100644 --- a/qcsrc/gamec/sv_stats.c +++ b/qcsrc/gamec/sv_stats.c @@ -1,5 +1,5 @@ // Accuracy -.float shots; -.float hits; +//.float shots; +//.float hits; diff --git a/qcsrc/gamec/w_common.c b/qcsrc/gamec/w_common.c index b30f9b4dd..7c626b0f7 100644 --- a/qcsrc/gamec/w_common.c +++ b/qcsrc/gamec/w_common.c @@ -403,7 +403,7 @@ void FireRailgunBullet (vector src, float bdamage, vector dir, float spread, flo void FireRailgunBullet (vector start, vector end, float bdamage, float deathtype) { - local vector hitloc, dir, force; + local vector hitloc, force; local entity ent; //local entity explosion; -- 2.39.2