deal with the new local init semantics for traditional code

This commit is contained in:
Bill Currie 2007-05-13 09:22:36 +00:00
parent de0481cfd5
commit 929f341e34
7 changed files with 10 additions and 8 deletions

View file

@ -1,5 +1,5 @@
all: progs.dat
progs.dat: progs.src *.qc
qfcc --traditional -Werror -g
qfcc -Wcow --traditional -Werror -g
clean:
rm -f core *.dat *.sym progdefs.h

View file

@ -61,6 +61,7 @@ entity (entity head, entity tail, float num) MakeChain =
{
local entity link, prevlink;
local float linknum;
link = world;
linknum = num;
num = num + 1;

View file

@ -35,10 +35,10 @@ entity(float disp) identify_player =
{
// e is a temp entity; guy is our current best guess
// as to at whom the player is pointing
local entity e, guy = world;
local entity e, guy; guy = world;
// The best "closeness" heuristic so far.
local float closeness = -1;
local float closeness; closeness = -1;
// Temp vars.
local vector diff, point;

View file

@ -264,7 +264,7 @@ void() armor_touch;
void() armor_touch =
{
local float type = 0, value = 0, bit = 0;
local float type, value, bit; type = value = bit = 0;
if (other.health <= 0)
return;
@ -440,7 +440,7 @@ float() W_BestWeapon;
void() weapon_touch =
{
local float hadammo, best, new = 0, old;
local float hadammo, best, new, old; new = 0;
local entity stemp;
local float leave;
//McBain: added prevweapon local variable

View file

@ -32,7 +32,7 @@ void(entity player,entity door) ObserverDoor =
local entity d,d_master;
local vector dmin,dmax;
local float is_x,is_y,is_z,set;
local vector dir = '0 0 0',or;
local vector dir,or; dir = '0 0 0';
d_master = d = door.owner;
if (d_master) {

View file

@ -712,7 +712,8 @@ void() TossBackpack =
void() Team_weapon_touch =
{
local float hadammo, best, new = 0, old;
local float hadammo, best, new, old;
new = 0;
local entity stemp;
if (!(other.flags & FL_CLIENT))

View file

@ -1047,7 +1047,7 @@ W_ChangeWeapon
*/
void() W_ChangeWeapon =
{
local float it, am, fl = 0;
local float it, am, fl; fl = 0;
it = self.items;
am = 0;