]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/effects/qc/rubble.qh
Merge branch 'master' into Mario/arc_bolt_bounce
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / effects / qc / rubble.qh
index 6eda9b15ef29d2b5c60a7b48e3651fcb5a538485..83f0ce855eda15d8371d10c1c49376bca57d60bb 100644 (file)
@@ -38,11 +38,8 @@ void RubbleLimit(string cname, int limit, void(entity) deleteproc)
        }
 }
 
-entity RubbleNew(string cname)
+entity RubbleNew(entity e)
 {
-       // spawn a new entity and return it
-       entity e = spawn();
-       e.classname = cname;
        e.creationtime = time;
        IL_PUSH(g_rubble, e);
        return e;