fixed client index being incorrect
This commit is contained in:
parent
2496036b35
commit
3713304d0d
@ -1068,17 +1068,20 @@ public Handle get_most_nominated_maps()
|
||||
int nominate_count_for_particular_map = 0;
|
||||
sm.GetValue(map_iteration, nominate_count_for_particular_map);
|
||||
|
||||
//if i is 0 its admin nominated map that must come into the vote.
|
||||
//if strequal the map was nominated by a leader and most be forced on the vote.
|
||||
if(!i || StrEqual(map_iteration, MapleaderNominatedMap, false))
|
||||
{
|
||||
nominate_count_for_particular_map = 999;
|
||||
}
|
||||
else
|
||||
{
|
||||
int nominate_worth = RoundToFloor(GetPlayerWorthRTV_boost_(i));
|
||||
if (nominate_worth < 1)
|
||||
{
|
||||
nominate_worth = 1;
|
||||
}
|
||||
nominate_count_for_particular_map += nominate_worth;
|
||||
//if i is 0 its admin nominated map that must come into the vote.
|
||||
//if strequal the map was nominated by a leader and most be forced on the vote.
|
||||
if(!i || StrEqual(map_iteration, MapleaderNominatedMap, false))
|
||||
{
|
||||
nominate_count_for_particular_map = 999;
|
||||
}
|
||||
sm.SetValue(map_iteration, nominate_count_for_particular_map, true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user