mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 12:13:06 +00:00
Merge pull request #10301 from PsiOmegaDelta/150726-VotingSanity
Fixes #9894 some more.
This commit is contained in:
@@ -188,9 +188,9 @@ datum/controller/vote
|
|||||||
if(mode)
|
if(mode)
|
||||||
if(config.vote_no_dead && usr.stat == DEAD && !usr.client.holder)
|
if(config.vote_no_dead && usr.stat == DEAD && !usr.client.holder)
|
||||||
return 0
|
return 0
|
||||||
if(current_votes[ckey])
|
if(vote && vote >= 1 && vote <= choices.len)
|
||||||
choices[choices[current_votes[ckey]]]--
|
if(current_votes[ckey])
|
||||||
if(vote && 1<=vote && vote<=choices.len)
|
choices[choices[current_votes[ckey]]]--
|
||||||
voted += usr.ckey
|
voted += usr.ckey
|
||||||
choices[choices[vote]]++ //check this
|
choices[choices[vote]]++ //check this
|
||||||
current_votes[ckey] = vote
|
current_votes[ckey] = vote
|
||||||
|
|||||||
Reference in New Issue
Block a user