]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/turrets/unit/tesla.qc
Use SELFPARAM() in every function that uses self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / turrets / unit / tesla.qc
index 05dbffbcbbf7559e057c0ccf9b4854026f5011a6..8f80abea75e59a50482ecc08bda65bdb8f258172 100644 (file)
@@ -12,7 +12,7 @@ REGISTER_TURRET(
 #else
 #ifdef SVQC
 entity toast(entity from, float range, float damage)
-{
+{SELFPARAM();
     entity e;
     entity etarget = world;
     float d,dd;
@@ -54,7 +54,7 @@ entity toast(entity from, float range, float damage)
 }
 
 float turret_tesla_firecheck()
-{
+{SELFPARAM();
     // g_turrets_targetscan_maxdelay forces a target re-scan at least this often
     float do_target_scan = 0;
 
@@ -89,10 +89,10 @@ float turret_tesla_firecheck()
     return 0;
 }
 
-void spawnfunc_turret_tesla() { if(!turret_initialize(TUR_TESLA)) remove(self); }
+void spawnfunc_turret_tesla() { SELFPARAM(); if(!turret_initialize(TUR_TESLA)) remove(self); }
 
 float t_tesla(float req)
-{
+{SELFPARAM();
     switch(req)
     {
         case TR_ATTACK: