]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/turrets/targettrigger.qc
take3: format 903 files
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / turrets / targettrigger.qc
index d64616f50354ca6ad092c4a0b1dae10a6ef8881b..c8887349e99932f963ca4913fa372c6b46697b7c 100644 (file)
@@ -7,25 +7,25 @@ void turret_targettrigger_touch(entity this, entity toucher);
 
 void turret_targettrigger_touch(entity this, entity toucher)
 {
-    if (this.cnt > time) return;
-    IL_EACH(g_turrets, it.targetname == this.target,
-    {
-        if (!(it.turret_flags & TUR_FLAG_RECIEVETARGETS)) continue;
-        if (!it.turret_addtarget) continue;
-        it.turret_addtarget(it, toucher, this);
-    });
-    this.cnt = time + 0.5;
+       if (this.cnt > time) { return; }
+       IL_EACH(g_turrets, it.targetname == this.target,
+       {
+               if (!(it.turret_flags & TUR_FLAG_RECIEVETARGETS)) { continue; }
+               if (!it.turret_addtarget) { continue; }
+               it.turret_addtarget(it, toucher, this);
+       });
+       this.cnt = time + 0.5;
 }
 
 /*QUAKED turret_targettrigger (.5 .5 .5) ?
 */
 spawnfunc(turret_targettrigger)
 {
-    if(!autocvar_g_turrets) { delete(this); return; }
+       if (!autocvar_g_turrets) { delete(this); return; }
 
-    InitTrigger(this);
+       InitTrigger(this);
 
-    settouch(this, turret_targettrigger_touch);
+       settouch(this, turret_targettrigger_touch);
 }
 
 #endif