mirror of
https://git.code.sf.net/p/quake/game-source
synced 2024-11-25 05:11:58 +00:00
deal with the new local init semantics for traditional code
This commit is contained in:
parent
de0481cfd5
commit
929f341e34
7 changed files with 10 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue