]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/generator.qc
Entity debugger
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / generator.qc
index d7114d1bf4b904ae36d685fb6444507e50eb0151..226d13dc3a9be43cbfa321d7cecf08a62140226e 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;