]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/generator.qc
Merge branch 'master' into TimePath/debug_draw
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / generator.qc
index 77e1c545ac5b671afca4ee369012d0fa148eb58c..281687963000c68f3b47c3951b08ce7330438a55 100644 (file)
@@ -32,9 +32,7 @@ void ons_generator_ray_draw(entity this)
 
 void ons_generator_ray_spawn(vector org)
 {
-       entity e;
-       e = spawn();
-       e.classname = "ons_ray";
+       entity e = new(ons_ray);
        setmodel(e, MDL_ONS_RAY);
        setorigin(e, org);
        e.angles = randomvec() * 360;