From 566b5f11cafb7e60456a0b6ebfc1799ed8fb703c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 25 Jan 2004 21:59:57 +0000 Subject: [PATCH] fix some = in truth value warnings --- client.qc | 2 +- custom.qc | 2 +- spy.qc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client.qc b/client.qc index 58908ec..174fcb1 100644 --- a/client.qc +++ b/client.qc @@ -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) { diff --git a/custom.qc b/custom.qc index 989600d..2f494d7 100644 --- a/custom.qc +++ b/custom.qc @@ -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; diff --git a/spy.qc b/spy.qc index 6b66b40..ab5a3f9 100644 --- a/spy.qc +++ b/spy.qc @@ -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;