From: Mario Date: Sat, 2 Jul 2016 00:22:39 +0000 (+1000) Subject: Hacky fix for TDM crashing X-Git-Tag: xonotic-v0.8.2~700^2~107 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=03f77ed25feff438ab486db6276ebb0d4f3cdb64;p=xonotic%2Fxonotic-data.pk3dir.git Hacky fix for TDM crashing --- diff --git a/qcsrc/server/mutators/mutator/gamemode_tdm.qc b/qcsrc/server/mutators/mutator/gamemode_tdm.qc index 787412908..0d516b262 100644 --- a/qcsrc/server/mutators/mutator/gamemode_tdm.qc +++ b/qcsrc/server/mutators/mutator/gamemode_tdm.qc @@ -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)