]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/weapons/tracing.qc
Tidy up classnames
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / tracing.qc
index 223dd071a956de88e057a362ab1c3e92c7f93855..4db498b4a0be5fafbca77a6e692e194f294ecd44 100644 (file)
@@ -1,6 +1,7 @@
 #include "tracing.qh"
 
 #include <common/constants.qh>
+#include <common/deathtypes/all.qh>
 #include <common/effects/all.qh>
 #include <common/net_linked.qh>
 #include <common/state.qh>
@@ -293,7 +294,7 @@ void FireRailgunBullet (entity this, .entity weaponentity, vector start, vector
                vector beampos = start + dir * bound(0, (it.origin - start) * dir, length);
 
                if(!pseudoprojectile)
-                       pseudoprojectile = spawn(); // we need this so the sound uses the "entchannel4" volume
+                       pseudoprojectile = new(pseudoprojectile); // we need this so the sound uses the "entchannel4" volume
 
                msg_entity = it;
                // we want this to be very loud when close but fall off quickly -> using max base volume and high attenuation