]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/turrets/turret/tesla_weapon.qc
Make railgunhit a bool and reduce a find loop to intrusiveness using less than sanita...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / turrets / turret / tesla_weapon.qc
index 1d90562ae6de5af785797bdd17534b9cfdcb59c8..7e6fda78ab8df41381679ad98b159fd1d6c24f98 100644 (file)
@@ -44,7 +44,7 @@ METHOD(TeslaCoilTurretAttack, wr_think, void(entity thiswep, entity actor, .enti
 
         IL_EACH(g_railgunhit, it.railgunhit,
         {
-            it.railgunhit = 0;
+            it.railgunhit = false;
         });
         IL_CLEAR(g_railgunhit);
     }
@@ -76,7 +76,7 @@ entity toast(entity actor, entity from, float range, float damage)
     {
         te_csqc_lightningarc(from.origin, etarget.origin);
         Damage(etarget, actor, actor, damage, DEATH_TURRET_TESLA.m_id, etarget.origin, '0 0 0');
-        etarget.railgunhit = 1;
+        etarget.railgunhit = true;
         IL_PUSH(g_railgunhit, etarget);
     }