]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
kill nottargeted field
authorMartin Taibr <taibr.martin@gmail.com>
Tue, 20 Feb 2018 17:54:08 +0000 (18:54 +0100)
committerMartin Taibr <taibr.martin@gmail.com>
Tue, 20 Feb 2018 17:54:08 +0000 (18:54 +0100)
qcsrc/common/triggers/trigger/heal.qc
qcsrc/common/triggers/triggers.qh
qcsrc/server/miscfunctions.qh
qcsrc/server/race.qc

index f2345e8f59397aba32c0802dd24e6b218a3c255a..0f5c69c777f65c0540a41de281622f4af56feb08 100644 (file)
@@ -13,7 +13,7 @@ void trigger_heal_touch(entity this, entity toucher)
                if (!IS_DEAD(toucher))
                if (toucher.triggerhealtime < time)
                {
-                       bool is_trigger = !boolean(!this.nottargeted && this.targetname != "");
+                       bool is_trigger = this.targetname == "";
                        if(is_trigger)
                                EXACTTRIGGER_TOUCH(this, toucher);
                        if(this.delay > 0)
index 2b8274f4b890aa473b5432de2415bb1719e925a1..49e3cb5efde4b76fbc46399f814115a74da85325 100644 (file)
@@ -14,8 +14,7 @@ const float   SPAWNFLAG_NOTOUCH = 1;
 
 .float height;
 
-.float nottargeted;
-#define IFTARGETED if(!this.nottargeted && this.targetname != "")
+#define IFTARGETED if(this.targetname != "")
 
 .float lip;
 
index 8a32b9b5bddf8c9ff71e031f6857fecbc86cb812..5538a574428cb4b8cbc5dbbe01dec2aa0f5264c8 100644 (file)
@@ -29,7 +29,6 @@ float cvar_normal(string n)
 #define cvar_set_normal builtin_cvar_set
 
 .vector dropped_origin;
-.float nottargeted;
 
 entity eliminatedPlayers;
 void EliminatedPlayers_Init(float(entity) isEliminated_func);
index 7f7f19b518912d5b56db30c60e2fcb447c347074..8804063dc6e5c918cb64e1b2912c2a27e99b8771 100644 (file)
@@ -995,7 +995,7 @@ spawnfunc(target_checkpoint) // defrag entity
        defrag_ents = 1;
 
        // if this is targeted, then it probably isn't a trigger
-       bool is_trigger = !boolean(!this.nottargeted && this.targetname != "");
+       bool is_trigger = this.targetname == "";
 
        if(is_trigger)
                EXACTTRIGGER_INIT;