From: MirceaKitsune Date: Sat, 2 Oct 2010 14:48:38 +0000 (+0300) Subject: Properly execute target_changelevel X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=12e749d2b1cbee97bf206829fa5e593976c57781;p=voretournament%2Fvoretournament.git Properly execute target_changelevel --- diff --git a/data/qcsrc/server/g_triggers.qc b/data/qcsrc/server/g_triggers.qc index 66bc39d9..92a9cfec 100644 --- a/data/qcsrc/server/g_triggers.qc +++ b/data/qcsrc/server/g_triggers.qc @@ -1817,7 +1817,7 @@ void spawnfunc_trigger_magicear() } .string chmap, gametype; -void spawnfunc_target_changelevel() +void spawnfunc_target_changelevel_use() { if(self.gametype != "") MapInfo_SwitchGameType(MapInfo_Type_FromString(self.gametype)); @@ -1827,3 +1827,8 @@ void spawnfunc_target_changelevel() else localcmd(strcat("changelevel ", self.chmap, "\n")); }; + +void spawnfunc_target_changelevel() +{ + self.use = spawnfunc_target_changelevel_use; +};