]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Get rid of half a ton of unref locals. CHECK YOUR COMPILEUTPUT FOR WARNINGS TOO1ONEELEVEN
authorJakob MG <jakob_mg@hotmail.com>
Wed, 22 Feb 2012 08:36:50 +0000 (09:36 +0100)
committerJakob MG <jakob_mg@hotmail.com>
Wed, 22 Feb 2012 08:36:50 +0000 (09:36 +0100)
qcsrc/common/command/rpn.qc
qcsrc/server/autocvars.qh
qcsrc/server/bot/navigation.qc
qcsrc/server/bot/waypoints.qc
qcsrc/server/command/getreplies.qc
qcsrc/server/command/sv_cmd.qc
qcsrc/server/defs.qh
qcsrc/server/w_fireball.qc

index d6c624bbb1e6b4bf8d37d89e4cdde5e9a748f038..c15a8d26ef79f0094de66fb91b95d2e8dc11798d 100644 (file)
@@ -55,9 +55,9 @@ void GenericCommand_rpn(float request, float argc, string command)
        {
                case CMD_REQUEST_COMMAND:
                {
-                       float i, j, f, n, f2, f3, rpnpos;
-                       vector rgb;
-                       string s, s2, c, rpncmd;
+                       float i, j, f, f2, f3, rpnpos;
+                       //vector rgb;
+                       string s, s2, rpncmd;
                        
                        if(!rpn_db)
                        {
index e336efc538db42d1d1f737b96713047762903fe5..dee1727fc1c078f7b2e58f8d90c82cf45a821525 100644 (file)
@@ -900,10 +900,10 @@ float autocvar_g_nexball_goalleadlimit;
 float autocvar_g_nexball_radar_showallplayers;
 float autocvar_g_nexball_sound_bounce;
 float autocvar_g_nexball_trail_color;
-float autocvar_g_nick_flood_penalty;
+//float autocvar_g_nick_flood_penalty;
 float autocvar_g_nick_flood_penalty_red;
 float autocvar_g_nick_flood_penalty_yellow;
-float autocvar_g_nick_flood_timeout;
+//float autocvar_g_nick_flood_timeout;
 float autocvar_g_nix_with_healtharmor;
 float autocvar_g_nix_with_laser;
 float autocvar_g_nix_with_powerups;
@@ -1162,7 +1162,7 @@ string autocvar_sv_vote_master_password;
 float autocvar_sv_vote_master_playerlimit;
 float autocvar_sv_vote_no_stops_vote;
 float autocvar_sv_vote_nospectators;
-string autocvar_sv_vote_only_commands;
+//string autocvar_sv_vote_only_commands;
 float autocvar_sv_vote_override_mostrecent;
 float autocvar_sv_vote_singlecount;
 float autocvar_sv_vote_stop;
index 3387fdfef8fdcc1b4e5711cb9d3c165c979782b2..bf963bc7cd703be9d53cacf49c422d0f84c726bd 100644 (file)
@@ -360,7 +360,6 @@ float navigation_waypoint_will_link(vector v, vector org, entity ent, float walk
 entity navigation_findnearestwaypoint_withdist(entity ent, float walkfromwp, float bestdist)
 {
        entity waylist, w, best;
-       float dist;
        vector v, org, pm1, pm2;
 
        pm1 = ent.origin + ent.mins;
index 4db72e407da5676ad73a15eab5a3c170a1aafd67..d31a88b52fbe2c954fbc30c2ba01de8ca1b5c325 100644 (file)
@@ -1067,7 +1067,6 @@ void botframe_autowaypoints_fix(entity p, float walkfromwp, .entity fld)
 void botframe_autowaypoints()
 {
        entity p;
-       entity wp0, wp1;
        FOR_EACH_REALPLAYER(p)
        {
                if(p.deadflag)
index 29b707b93da4bf08de5116d1ece08abda4956bc6..3640c817283545f2ca27058cce0bfc840f54beba 100644 (file)
@@ -12,7 +12,7 @@
        
 string getrecords(float page) // 50 records per page
 {      
-       float rec, r, i;
+       float rec = 0, r, i;
        string h, s;
 
        if (g_ctf)
index 98d877c436beaea85e0b0a438091c3462bec8864..e70ce44ddbd06b3a7059d6fcc750d51ba0365895 100644 (file)
@@ -1238,8 +1238,8 @@ void GameCommand_shuffleteams(float request)
                {
                        if(teamplay)
                        {
-                               entity tmp_player, client;
-                               float i, x, z, t_teams, t_players, team_color, accepted;
+                               entity tmp_player;
+                               float i, x, z, t_teams, t_players, team_color;
 
                                // count the total amount of players and total amount of teams
                                FOR_EACH_PLAYER(tmp_player)
index e2d4c7ad8c7db8672b6963952d025fc15fbe81b3..6b25c449f6d128e62892a6f9da93e5ae40446cdc 100644 (file)
@@ -545,7 +545,7 @@ void SUB_UseTargets();
 
 void ClientData_Touch(entity e);
 
-vector debug_shotorg; // if non-zero, overrides the shot origin of all weapons
+//vector debug_shotorg; // if non-zero, overrides the shot origin of all weapons
 
 .float wasplayer;
 
index 77c67b46bb9f96e548731ad022d702ae1f005fdd..1c950aca4a58ddc2b3e1eff4092008df91a086a7 100644 (file)
@@ -302,7 +302,7 @@ void spawnfunc_weapon_fireball (void)
 
 float w_fireball(float req)
 {
-       float ammo_amount;
+       //float ammo_amount;
        if (req == WR_AIM)
        {
                self.BUTTON_ATCK = FALSE;