mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed bug am48018
This commit is contained in:
parent
73b2ceb855
commit
b237317e50
@ -90,7 +90,8 @@ public checkVotes()
|
||||
b = a
|
||||
|
||||
|
||||
if (g_voteCount[SELECTMAPS] > g_voteCount[b])
|
||||
if (g_voteCount[SELECTMAPS] > g_voteCount[b]
|
||||
&& g_voteCount[SELECTMAPS] > g_voteCount[SELECTMAPS+1])
|
||||
{
|
||||
new mapname[32]
|
||||
|
||||
@ -104,7 +105,9 @@ 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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user