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.
This commit is contained in:
Bill Currie 2001-10-24 06:43:33 +00:00
parent abfb96ff68
commit c32a920e94
4 changed files with 0 additions and 5 deletions

View file

@ -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;

1
ai.qc
View file

@ -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;

View file

@ -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;

View file

@ -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)