]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Hacky fix for TDM crashing
authorMario <mario@smbclan.net>
Sat, 2 Jul 2016 00:22:39 +0000 (10:22 +1000)
committerMario <mario@smbclan.net>
Sat, 2 Jul 2016 00:22:55 +0000 (10:22 +1000)
qcsrc/server/mutators/mutator/gamemode_tdm.qc

index 787412908513449a6f5c28a81d4a47557ca95023..0d516b262623c6f5489d665977ed68c34b7f312a 100644 (file)
@@ -60,11 +60,12 @@ spawnfunc(tdm_team)
 // code from here on is just to support maps that don't have team entities
 void tdm_SpawnTeam (string teamname, float teamcolor)
 {
-       entity this = new(tdm_team);
+       entity this = new_pure(tdm_team);
        this.netname = teamname;
        this.cnt = teamcolor;
+       this.team = this.cnt + 1;
        this.spawnfunc_checked = true;
-       spawnfunc_tdm_team(this);
+       //spawnfunc_tdm_team(this);
 }
 
 void tdm_DelayedInit(entity this)