// 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