]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Actually, set the gametype in the .instantaction file
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 28 Sep 2010 15:17:45 +0000 (18:17 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 28 Sep 2010 15:17:45 +0000 (18:17 +0300)
data/qcsrc/menu/voret/dialog_singleplayer.c

index 7840145aa1dea5d3aaa5c34418ebdb56be664506..867b09c8913401e951f5be35a8f4599598dfce85 100644 (file)
@@ -35,6 +35,8 @@ void InstantAction_LoadMap(entity btn, entity dummy)
                        cvar_set("lastlevel", "1");\r
                        return;\r
                }\r
+               else if(argv(0) == "gametype")\r
+                       MapInfo_SwitchGameType(MapInfo_Type_FromString(argv(1)));\r
                else if(argv(0) != "" && argv(0) != "//" && argv(0) != "#")\r
                        cvar_set(argv(0), argv(1)); //TODO: sanity check, this can currently set any cvar!\r
        }\r