mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-31 20:43:38 +00:00
Fixed non-gamemode votes being unusable
Hopefully this doesn't break something else.
This commit is contained in:
@@ -310,11 +310,16 @@ datum/controller/vote
|
|||||||
var/votes = choices[choices[i]]
|
var/votes = choices[choices[i]]
|
||||||
if(!votes) votes = 0
|
if(!votes) votes = 0
|
||||||
. += "<tr>"
|
. += "<tr>"
|
||||||
|
if(mode == "gamemode")
|
||||||
if(current_votes[C.ckey] == i)
|
if(current_votes[C.ckey] == i)
|
||||||
. += "<td><b><a href='?src=\ref[src];vote=[i]'>[gamemode_names[choices[i]]]</a></b></td><td align = 'center'>[votes]</td>"
|
. += "<td><b><a href='?src=\ref[src];vote=[i]'>[gamemode_names[choices[i]]]</a></b></td><td align = 'center'>[votes]</td>"
|
||||||
else
|
else
|
||||||
. += "<td><a href='?src=\ref[src];vote=[i]'>[gamemode_names[choices[i]]]</a></b></td><td align = 'center'>[votes]</td>"
|
. += "<td><a href='?src=\ref[src];vote=[i]'>[gamemode_names[choices[i]]]</a></b></td><td align = 'center'>[votes]</td>"
|
||||||
|
else
|
||||||
|
if(current_votes[C.ckey] == i)
|
||||||
|
. += "<td><b><a href='?src=\ref[src];vote=[i]'>[choices[i]]</a></b></td><td align = 'center'>[votes]</td>"
|
||||||
|
else
|
||||||
|
. += "<td><a href='?src=\ref[src];vote=[i]'>[choices[i]]</a></b></td><td align = 'center'>[votes]</td>"
|
||||||
if (additional_text.len >= i)
|
if (additional_text.len >= i)
|
||||||
. += additional_text[i]
|
. += additional_text[i]
|
||||||
. += "</tr>"
|
. += "</tr>"
|
||||||
|
|||||||
Reference in New Issue
Block a user