fixed client index being incorrect
This commit is contained in:
parent
2496036b35
commit
3713304d0d
@ -1068,18 +1068,21 @@ public Handle get_most_nominated_maps()
|
|||||||
int nominate_count_for_particular_map = 0;
|
int nominate_count_for_particular_map = 0;
|
||||||
sm.GetValue(map_iteration, nominate_count_for_particular_map);
|
sm.GetValue(map_iteration, nominate_count_for_particular_map);
|
||||||
|
|
||||||
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 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 strequal the map was nominated by a leader and most be forced on the vote.
|
||||||
if(!i || StrEqual(map_iteration, MapleaderNominatedMap, false))
|
if(!i || StrEqual(map_iteration, MapleaderNominatedMap, false))
|
||||||
{
|
{
|
||||||
nominate_count_for_particular_map = 999;
|
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;
|
||||||
|
}
|
||||||
sm.SetValue(map_iteration, nominate_count_for_particular_map, true);
|
sm.SetValue(map_iteration, nominate_count_for_particular_map, true);
|
||||||
|
|
||||||
/* Notify Nominations that this map is now free */
|
/* Notify Nominations that this map is now free */
|
||||||
|
Loading…
Reference in New Issue
Block a user