]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Properly execute target_changelevel
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Oct 2010 14:48:38 +0000 (17:48 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Oct 2010 14:48:38 +0000 (17:48 +0300)
data/qcsrc/server/g_triggers.qc

index 66bc39d9432e58c5730584bd6ae2afd3cf83b42c..92a9cfec3d5e9a9ae04bb78f4f89738a82de8a1c 100644 (file)
@@ -1817,7 +1817,7 @@ void spawnfunc_trigger_magicear()
 }\r
 \r
 .string chmap, gametype;\r
-void spawnfunc_target_changelevel()\r
+void spawnfunc_target_changelevel_use()\r
 {\r
        if(self.gametype != "")\r
                MapInfo_SwitchGameType(MapInfo_Type_FromString(self.gametype));\r
@@ -1827,3 +1827,8 @@ void spawnfunc_target_changelevel()
        else\r
                localcmd(strcat("changelevel ", self.chmap, "\n"));\r
 };\r
+\r
+void spawnfunc_target_changelevel()\r
+{\r
+       self.use = spawnfunc_target_changelevel_use;\r
+};\r