1.1 --- a/plugins/mapchooser.sp Wed Aug 27 01:00:01 2008 +0000
1.2 +++ b/plugins/mapchooser.sp Wed Aug 27 01:45:10 2008 +0000
1.3 @@ -123,7 +123,7 @@
1.4 g_Cvar_NoVoteMode = CreateConVar("sm_mapvote_novote", "1", "Specifies whether or not MapChooser should pick a map if no votes are received.", _, true, 0.0, true, 1.0);
1.5 g_Cvar_Extend = CreateConVar("sm_mapvote_extend", "0", "Number of extensions allowed each map.", _, true, 0.0);
1.6 g_Cvar_DontChange = CreateConVar("sm_mapvote_dontchange", "1", "Specifies if a 'Don't Change' option should be added to early votes", _, true, 0.0);
1.7 - g_Cvar_VoteDuration = CreateConVar("sm_mapvote_voteduration", "20", "Specifies how long the mapvote should be available for.", _, true, 5.0, true, 25.0);
1.8 + g_Cvar_VoteDuration = CreateConVar("sm_mapvote_voteduration", "20", "Specifies how long the mapvote should be available for.", _, true, 5.0);
1.9
1.10 RegAdminCmd("sm_mapvote", Command_Mapvote, ADMFLAG_CHANGEMAP, "sm_mapvote - Forces MapChooser to attempt to run a map vote now.");
1.11 RegAdminCmd("sm_setnextmap", Command_SetNextmap, ADMFLAG_CHANGEMAP, "sm_setnextmap <map>");
1.12 @@ -355,13 +355,14 @@
1.13 if(GetEventInt(event, "round_complete") == 1 || StrEqual(name, "arena_win_panel"))
1.14 {
1.15 g_TotalRounds++;
1.16 - CheckMaxRounds(g_TotalRounds);
1.17
1.18 if (!GetArraySize(g_MapList) || g_HasVoteStarted || g_MapVoteCompleted || !GetConVarBool(g_Cvar_EndOfMapVote))
1.19 {
1.20 return;
1.21 }
1.22
1.23 + CheckMaxRounds(g_TotalRounds);
1.24 +
1.25 switch(GetEventInt(event, "winning_team"))
1.26 {
1.27 case 3: