X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fmiscfunctions.qc;h=036c9570f1df2a3b4da7ed475c1db368e89c947c;hb=e9e91f9bc18dd5002e60c595c83cb8f45068a14b;hp=9bf0a855fa5375e53db412db0f7cae6d89e3efa0;hpb=6cc2d1aa115907d16ae84fb07c3fe6c3329cd9b5;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/miscfunctions.qc b/qcsrc/client/miscfunctions.qc index 9bf0a855f..036c9570f 100644 --- a/qcsrc/client/miscfunctions.qc +++ b/qcsrc/client/miscfunctions.qc @@ -1,14 +1,12 @@ #include "miscfunctions.qh" -#include "_all.qh" #include "hud.qh" #include "../common/command/generic.qh" #include "../common/teams.qh" -#include "../common/util.qh" -#include "../csqcmodellib/cl_model.qh" +#include "../lib/csqcmodel/cl_model.qh" void AuditLists() @@ -125,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);