]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Execute target_changelevel properly
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Oct 2010 14:37:05 +0000 (17:37 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Oct 2010 14:37:05 +0000 (17:37 +0300)
qcsrc/server/g_triggers.qc

index cc2e32fd1b4155dcce98424ce3ed56f25cae5179..a1ee74d4300439589790a925384997779f6c7de0 100644 (file)
@@ -1998,7 +1998,7 @@ void spawnfunc_relay_activatetoggle()
 }
 
 .string chmap, gametype;
-void spawnfunc_target_changelevel()
+void spawnfunc_target_changelevel_use()
 {
        if(self.gametype != "")
                MapInfo_SwitchGameType(MapInfo_Type_FromString(self.gametype));
@@ -2008,3 +2008,8 @@ void spawnfunc_target_changelevel()
        else
                localcmd(strcat("changelevel ", self.chmap, "\n"));
 };
+
+void spawnfunc_target_changelevel()
+{
+       self.use = spawnfunc_target_changelevel_use;
+};