Code improvements

This commit is contained in:
Putnam
2019-12-29 21:01:55 -08:00
parent ddf233e0d5
commit cc087b990c
6 changed files with 22 additions and 21 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ SUBSYSTEM_DEF(vote)
if(mode)
if(CONFIG_GET(flag/no_dead_vote) && usr.stat == DEAD && !usr.client.holder)
return 0
if(vote && vote >= 1 && vote <= choices.len)
if(vote && ISINRANGE(vote, 1, choices.len))
switch(vote_system)
if(PLURALITY_VOTING)
if(usr.ckey in voted)