mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-10 07:11:51 +00:00
fix some = in truth value warnings
This commit is contained in:
parent
83edfbc033
commit
566b5f11ca
3 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
2
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;
|
||||
|
|
Loading…
Reference in a new issue