-bool GameTypeVote_SetGametype(Gametype type);
-
-// gametype_name can be the name of a custom gametype based on Gametype type
-void GameTypeVote_ApplyGameType(Gametype type, string gametype_name)
-{
- if (gametype_name == "")
- gametype_name = MapInfo_Type_ToString(type);
-
- localcmd("sv_vote_gametype_hook_all\n");
- localcmd("sv_vote_gametype_hook_", gametype_name, "\n");
-
- if (!GameTypeVote_SetGametype(type))
- LOG_TRACE("Selected gametype is not supported by any map");
-}
-