From: MirceaKitsune Date: Tue, 28 Sep 2010 15:17:45 +0000 (+0300) Subject: Actually, set the gametype in the .instantaction file X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=05319dac12221dce0cf97b2fda60581fe1a1713b;p=voretournament%2Fvoretournament.git Actually, set the gametype in the .instantaction file --- diff --git a/data/qcsrc/menu/voret/dialog_singleplayer.c b/data/qcsrc/menu/voret/dialog_singleplayer.c index 7840145a..867b09c8 100644 --- a/data/qcsrc/menu/voret/dialog_singleplayer.c +++ b/data/qcsrc/menu/voret/dialog_singleplayer.c @@ -35,6 +35,8 @@ void InstantAction_LoadMap(entity btn, entity dummy) cvar_set("lastlevel", "1"); return; } + else if(argv(0) == "gametype") + MapInfo_SwitchGameType(MapInfo_Type_FromString(argv(1))); else if(argv(0) != "" && argv(0) != "//" && argv(0) != "#") cvar_set(argv(0), argv(1)); //TODO: sanity check, this can currently set any cvar! }