From 7de862cfe141ba1d8d8660c2532603f37d15a3fe Mon Sep 17 00:00:00 2001 From: Amunak Date: Sat, 13 Dec 2014 07:21:09 +0100 Subject: [PATCH] Fixed non-gamemode votes being unusable Hopefully this doesn't break something else. --- code/controllers/voting.dm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/code/controllers/voting.dm b/code/controllers/voting.dm index e2bafbb0d6..d5503890a2 100644 --- a/code/controllers/voting.dm +++ b/code/controllers/voting.dm @@ -310,11 +310,16 @@ datum/controller/vote var/votes = choices[choices[i]] if(!votes) votes = 0 . += "" - if(current_votes[C.ckey] == i) - . += "[gamemode_names[choices[i]]][votes]" + if(mode == "gamemode") + if(current_votes[C.ckey] == i) + . += "[gamemode_names[choices[i]]][votes]" + else + . += "[gamemode_names[choices[i]]][votes]" else - . += "[gamemode_names[choices[i]]][votes]" - + if(current_votes[C.ckey] == i) + . += "[choices[i]][votes]" + else + . += "[choices[i]][votes]" if (additional_text.len >= i) . += additional_text[i] . += ""