]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/miscfunctions.qc
Entity debugger
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / miscfunctions.qc
index 7983e740f1a0862d90a958fa2b64f214653249ef..036c9570f1df2a3b4da7ed475c1db368e89c947c 100644 (file)
@@ -123,7 +123,8 @@ entity GetTeam(int Team, bool add)
                return teamslots[num];
        if (!add)
                return world;
-       entity tm = spawn();
+       entity tm = new(team);
+       make_pure(tm);
        tm.team = Team;
        teamslots[num] = tm;
        RegisterTeam(tm);