- for(i = 0; i < 2; ++i)
- {
- if(cvar("g_dm"))
- if(prev != MAPINFO_TYPE_DEATHMATCH)
- return MAPINFO_TYPE_DEATHMATCH;
- if(cvar("g_domination"))
- if(prev != MAPINFO_TYPE_DOMINATION)
- return MAPINFO_TYPE_DOMINATION;
- if(cvar("g_ctf"))
- if(prev != MAPINFO_TYPE_CTF)
- return MAPINFO_TYPE_CTF;
- if(cvar("g_runematch"))
- if(prev != MAPINFO_TYPE_RUNEMATCH)
- return MAPINFO_TYPE_RUNEMATCH;
- if(cvar("g_tdm"))
- if(prev != MAPINFO_TYPE_TEAM_DEATHMATCH)
- return MAPINFO_TYPE_TEAM_DEATHMATCH;
- if(cvar("g_assault"))
- if(prev != MAPINFO_TYPE_ASSAULT)
- return MAPINFO_TYPE_ASSAULT;
- if(cvar("g_lms"))
- if(prev != MAPINFO_TYPE_LMS)
- return MAPINFO_TYPE_LMS;
- if(cvar("g_arena"))
- if(prev != MAPINFO_TYPE_ARENA)
- return MAPINFO_TYPE_ARENA;
- if(cvar("g_ca"))
- if(prev != MAPINFO_TYPE_CA)
- return MAPINFO_TYPE_CA;
- if(cvar("g_keyhunt"))
- if(prev != MAPINFO_TYPE_KEYHUNT)
- return MAPINFO_TYPE_KEYHUNT;
- if(cvar("g_onslaught"))
- if(prev != MAPINFO_TYPE_ONSLAUGHT)
- return MAPINFO_TYPE_ONSLAUGHT;
- if(cvar("g_race"))
- if(prev != MAPINFO_TYPE_RACE)
- return MAPINFO_TYPE_RACE;
- if(cvar("g_nexball"))
- if(prev != MAPINFO_TYPE_NEXBALL)
- return MAPINFO_TYPE_NEXBALL;
- if(cvar("g_cts"))
- if(prev != MAPINFO_TYPE_CTS)
- return MAPINFO_TYPE_CTS;
- if(cvar("g_freezetag"))
- if(prev != MAPINFO_TYPE_FREEZETAG)
- return MAPINFO_TYPE_FREEZETAG;
- if(cvar("g_keepaway"))
- if(prev != MAPINFO_TYPE_KEEPAWAY)
- return MAPINFO_TYPE_KEEPAWAY;
- prev = -1;
- }