correction since commit 3164 was accidental

This commit is contained in:
Split 2006-12-06 08:46:44 +00:00
parent fe0e461c76
commit c5dc780635

View File

@ -83,20 +83,12 @@ public plugin_init()
public checkVotes()
{
new b = 0, smap[32]
new b = 0
for (new a = 0; a < g_mapVoteNum; ++a)
if (g_voteCount[b] < g_voteCount[a])
b = a
if (g_voteCount[SELECTMAPS] == g_voteCount[b])
{
get_cvar_string("amx_nextmap", smap, 31)
client_print(0, print_chat, "%L", LANG_PLAYER, "CHO_FIN_NEXT", smap)
log_amx("Vote: Voting for the nextmap finished. The nextmap will be %s", smap)
return
}
if (g_voteCount[SELECTMAPS] > g_voteCount[b])
{
@ -113,6 +105,8 @@ public checkVotes()
if (g_voteCount[b] && g_voteCount[SELECTMAPS + 1] <= g_voteCount[b])
set_cvar_string("amx_nextmap", g_mapName[g_nextName[b]])
new smap[32]
get_cvar_string("amx_nextmap", smap, 31)
client_print(0, print_chat, "%L", LANG_PLAYER, "CHO_FIN_NEXT", smap)