Fix vote count ordering: Include votes for 0 (#998)
Off by one error: 0 [votes] has to be includedmaster
parent
69d8cabc76
commit
e1e83c4be6
|
@ -105,7 +105,7 @@ function ctf_modebase.mode_vote.end_vote()
|
|||
local votes_result = ""
|
||||
local average_vote = 0
|
||||
local entry_count = 0
|
||||
for length = 1, MAX_ROUNDS do
|
||||
for length = 0, MAX_ROUNDS do
|
||||
local vote_count = length_votes[length]
|
||||
if vote_count then
|
||||
votes_result = votes_result .. string.format(
|
||||
|
|
Loading…
Reference in New Issue