]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile with TURRET_DEBUG
authorMario <mario@smbclan.net>
Wed, 10 Apr 2019 23:48:56 +0000 (09:48 +1000)
committerMario <mario@smbclan.net>
Wed, 10 Apr 2019 23:48:56 +0000 (09:48 +1000)
qcsrc/common/turrets/turret/flac_weapon.qc
qcsrc/common/turrets/util.qc
qcsrc/common/turrets/util.qh
qcsrc/server/pathlib/main.qc

index d9d7a3f1423e0c5d724b9a977b6236b2bb87d4dc..64b5e20543f1639d0cf44c38f926262448a6fe71 100644 (file)
@@ -42,8 +42,8 @@ void turret_flac_projectile_think_explode(entity this)
 
 #ifdef TURRET_DEBUG
     float d = RadiusDamage (this, this.owner, this.owner.shot_dmg, this.owner.shot_dmg, this.owner.shot_radius, this, NULL, this.owner.shot_force, this.totalfrags, DMG_NOWEP, NULL);
-    this.owner.tur_dbg_dmg_t_h = this.owner.tur_dbg_dmg_t_h + d;
-    this.owner.tur_dbg_dmg_t_f = this.owner.tur_dbg_dmg_t_f + this.owner.shot_dmg;
+    this.owner.tur_debug_dmg_t_h = this.owner.tur_debug_dmg_t_h + d;
+    this.owner.tur_debug_dmg_t_f = this.owner.tur_debug_dmg_t_f + this.owner.shot_dmg;
 #else
     RadiusDamage (this, this.realowner, this.owner.shot_dmg, this.owner.shot_dmg, this.owner.shot_radius, this, NULL, this.owner.shot_force, this.totalfrags, DMG_NOWEP, NULL);
 #endif
index 5201f4751c9ee14df84cec520e313c959cc5b7c7..817487c6d631d9c023c26d3581abb39244c3f486 100644 (file)
@@ -97,7 +97,7 @@ void FireImoBeam(entity this, vector start, vector end, vector smin, vector smax
 }
 
 #ifdef TURRET_DEBUG
-void marker_think(entity this)
+void marker_think(entity this)
 {
        if(this.cnt)
        if(this.cnt < time)
@@ -129,7 +129,7 @@ void mark_error(vector where,float lifetime)
 
 void mark_info(vector where,float lifetime)
 {
-       entity err = spawn(info_marker);
+       entity err = new(info_marker);
        setmodel(err, MDL_MARKER);
        setorigin(err, where);
        set_movetype(err, MOVETYPE_NONE);
@@ -142,7 +142,7 @@ void mark_info(vector where,float lifetime)
 
 entity mark_misc(vector where,float lifetime)
 {
-       entity err = spawn(mark_misc);
+       entity err = new(mark_misc);
        setmodel(err, MDL_MARKER);
        setorigin(err, where);
        set_movetype(err, MOVETYPE_NONE);
index 4e5cb0d5b970a1b7cd57413db2fd5ca6649bf137..d42c433a1106ed0109010500a8905aaf8144e914 100644 (file)
@@ -9,6 +9,10 @@ void FireImoBeam(entity this, vector start, vector end, vector smin, vector smax
 void mark_error(vector where,float lifetime);
 void mark_info(vector where,float lifetime);
 entity mark_misc(vector where,float lifetime);
+
+void paint_target(entity onwho, float f_size, vector v_color, float f_time);
+void paint_target2(entity onwho, float f_size, vector v_color, float f_time);
+void paint_target3(vector where, float f_size, vector v_color, float f_time);
 #endif
 
 #endif
index 1aeae109c34610f31e05c6a6e174f684d2223e9f..fc550fa636f029bd2f0b1e596c44dbd0b15a6a2e 100644 (file)
@@ -4,6 +4,7 @@
 #include <server/miscfunctions.qh>
 #include "pathlib.qh"
 #include "utility.qh"
+#include <common/turrets/util.qh>
 #include "../command/common.qh"
 
 void pathlib_deletepath(entity start)