mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-10 15:21:51 +00:00
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:
parent
abfb96ff68
commit
c32a920e94
4 changed files with 0 additions and 5 deletions
1
admin.qc
1
admin.qc
|
@ -307,7 +307,6 @@ void() Admin_Cmd =
|
||||||
else if (st == "team1" || st == "team2" || st == "team3" || st == "team4")
|
else if (st == "team1" || st == "team2" || st == "team3" || st == "team4")
|
||||||
{
|
{
|
||||||
local float targetteam, tc, tc2;
|
local float targetteam, tc, tc2;
|
||||||
local string st2;
|
|
||||||
|
|
||||||
if (st == "team1")
|
if (st == "team1")
|
||||||
targetteam = 1;
|
targetteam = 1;
|
||||||
|
|
1
ai.qc
1
ai.qc
|
@ -579,7 +579,6 @@ entity (entity scanner) LookAround =
|
||||||
if (infokey(world,"ceasefire")=="on") //OfN
|
if (infokey(world,"ceasefire")=="on") //OfN
|
||||||
return scanner;
|
return scanner;
|
||||||
|
|
||||||
local entity scanner;
|
|
||||||
local entity client;
|
local entity client;
|
||||||
local float gotatarget;
|
local float gotatarget;
|
||||||
|
|
||||||
|
|
|
@ -590,7 +590,6 @@ entity (entity scanner) LookAroundGrunty =
|
||||||
if (infokey(world,"ceasefire")=="on") //OfN
|
if (infokey(world,"ceasefire")=="on") //OfN
|
||||||
return scanner;
|
return scanner;
|
||||||
|
|
||||||
local entity scanner;
|
|
||||||
local entity client;
|
local entity client;
|
||||||
local float gotatarget;
|
local float gotatarget;
|
||||||
|
|
||||||
|
|
|
@ -521,8 +521,6 @@ void(entity demon) custom_demon_name =
|
||||||
|
|
||||||
void (float points) custom_demon_create =
|
void (float points) custom_demon_create =
|
||||||
{
|
{
|
||||||
local float points;
|
|
||||||
|
|
||||||
//Play random summoning sound here
|
//Play random summoning sound here
|
||||||
//r = random();
|
//r = random();
|
||||||
//if (r < 0.33)
|
//if (r < 0.33)
|
||||||
|
|
Loading…
Reference in a new issue