mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
correction since commit 3164 was accidental
This commit is contained in:
parent
fe0e461c76
commit
c5dc780635
@ -83,20 +83,12 @@ public plugin_init()
|
|||||||
|
|
||||||
public checkVotes()
|
public checkVotes()
|
||||||
{
|
{
|
||||||
new b = 0, smap[32]
|
new b = 0
|
||||||
|
|
||||||
for (new a = 0; a < g_mapVoteNum; ++a)
|
for (new a = 0; a < g_mapVoteNum; ++a)
|
||||||
if (g_voteCount[b] < g_voteCount[a])
|
if (g_voteCount[b] < g_voteCount[a])
|
||||||
b = 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])
|
if (g_voteCount[SELECTMAPS] > g_voteCount[b])
|
||||||
{
|
{
|
||||||
@ -113,6 +105,8 @@ public checkVotes()
|
|||||||
|
|
||||||
if (g_voteCount[b] && g_voteCount[SELECTMAPS + 1] <= g_voteCount[b])
|
if (g_voteCount[b] && g_voteCount[SELECTMAPS + 1] <= g_voteCount[b])
|
||||||
set_cvar_string("amx_nextmap", g_mapName[g_nextName[b]])
|
set_cvar_string("amx_nextmap", g_mapName[g_nextName[b]])
|
||||||
|
|
||||||
|
new smap[32]
|
||||||
|
|
||||||
get_cvar_string("amx_nextmap", smap, 31)
|
get_cvar_string("amx_nextmap", smap, 31)
|
||||||
client_print(0, print_chat, "%L", LANG_PLAYER, "CHO_FIN_NEXT", smap)
|
client_print(0, print_chat, "%L", LANG_PLAYER, "CHO_FIN_NEXT", smap)
|
||||||
|
Loading…
Reference in New Issue
Block a user