From c32a920e94a597036342ebdc42591e5a79802293 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 24 Oct 2001 06:43:33 +0000 Subject: [PATCH] fix some unused/uninitialized* vars found by qfcc's new scoping. * parameters were getting shaddowed by locals of the same name. this used to be harmless as the local def would just pick up the param rather than creating a new def, but now that params and locals are in separate scopes, this shaddowing becomes a potential problem. --- admin.qc | 1 - ai.qc | 1 - grunty.qc | 1 - warlock.qc | 2 -- 4 files changed, 5 deletions(-) diff --git a/admin.qc b/admin.qc index f5c52cc..9f345b8 100644 --- a/admin.qc +++ b/admin.qc @@ -307,7 +307,6 @@ void() Admin_Cmd = else if (st == "team1" || st == "team2" || st == "team3" || st == "team4") { local float targetteam, tc, tc2; - local string st2; if (st == "team1") targetteam = 1; diff --git a/ai.qc b/ai.qc index 49e5553..f6294f3 100644 --- a/ai.qc +++ b/ai.qc @@ -579,7 +579,6 @@ entity (entity scanner) LookAround = if (infokey(world,"ceasefire")=="on") //OfN return scanner; - local entity scanner; local entity client; local float gotatarget; diff --git a/grunty.qc b/grunty.qc index 8626d08..2f19f71 100644 --- a/grunty.qc +++ b/grunty.qc @@ -590,7 +590,6 @@ entity (entity scanner) LookAroundGrunty = if (infokey(world,"ceasefire")=="on") //OfN return scanner; - local entity scanner; local entity client; local float gotatarget; diff --git a/warlock.qc b/warlock.qc index b4a937d..c332bd3 100644 --- a/warlock.qc +++ b/warlock.qc @@ -521,8 +521,6 @@ void(entity demon) custom_demon_name = void (float points) custom_demon_create = { - local float points; - //Play random summoning sound here //r = random(); //if (r < 0.33)