]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix TD controller spawning in other gamemodes
authorMario <mario.mario@y7mail.com>
Fri, 25 Jan 2013 12:13:57 +0000 (23:13 +1100)
committerMario <mario.mario@y7mail.com>
Fri, 25 Jan 2013 12:13:57 +0000 (23:13 +1100)
qcsrc/server/mutators/gamemode_td.qc

index 077aa85325203a52bc117fd8be48a69c98fe0428..1c6cdd1a142dd6f6564700d15296be8b6e0e8ea1 100644 (file)
@@ -3,6 +3,11 @@
  
 void spawnfunc_td_controller()
 {
+       if not(g_td)
+       {
+               remove(self);
+               return;
+       }
        if(autocvar_g_td_force_settings)
        {
                self.dontend = FALSE;