Gametype key
[voretournament/voretournament.git] / data / qcsrc / server / g_triggers.qc
index ebc63e13d005f8fbe4d70cf1af67cebcc20756fe..66bc39d9432e58c5730584bd6ae2afd3cf83b42c 100644 (file)
@@ -1816,9 +1816,12 @@ void spawnfunc_trigger_magicear()
        //   what to trigger\r
 }\r
 \r
-.string chmap;\r
+.string chmap, gametype;\r
 void spawnfunc_target_changelevel()\r
 {\r
+       if(self.gametype != "")\r
+               MapInfo_SwitchGameType(MapInfo_Type_FromString(self.gametype));\r
+\r
        if (self.chmap == "")\r
                localcmd("endmatch\n");\r
        else\r