fix some = in truth value warnings

This commit is contained in:
Bill Currie 2004-01-25 21:59:57 +00:00
parent 83edfbc033
commit 566b5f11ca
3 changed files with 3 additions and 3 deletions

View file

@ -716,7 +716,7 @@ void() DecodeLevelParms =
st = infokey (NIL, "improve_respawns");
if (st == "1" || st == "on") {
local entity ent = NIL;
while (ent = find (ent, classname, "info_tfgoal")) {
while ((ent = find (ent, classname, "info_tfgoal"))) {
if (ent.ammo_shells && ent.ammo_nails
&& ent.ammo_rockets && ent.ammo_cells
&& ent.armorvalue && ent.health) {

View file

@ -995,7 +995,7 @@ void() FragSpikeThink =
self.angles_x = 0;
self.angles_z = 0;
makevectors(self.angles);
if (self.velocity = '0 0 0')
if (self.velocity == '0 0 0')
self.origin_z = self.origin_z + 50;
self.velocity = v_forward * 1000;

2
spy.qc
View file

@ -459,7 +459,7 @@ void() TeamFortress_SpyGoUndercover =
else
self.is_undercover = 0;
local entity ent = NIL;
while (ent = find (ent, classname, "timer")) {
while ((ent = find (ent, classname, "timer"))) {
if (ent.owner == self && ent.think == TeamFortress_SpyUndercoverThink) {
ent.think = SUB_Remove;
ent.nextthink = time + 0.1;