diff --git a/code/controllers/voting.dm b/code/controllers/voting.dm
index 393b46954a7..9817baaff3a 100644
--- a/code/controllers/voting.dm
+++ b/code/controllers/voting.dm
@@ -90,23 +90,23 @@ datum/controller/vote
var/list/winners = get_result()
var/text
if(winners.len > 0)
- if(mode == "custom")
- text += "Vote Results:
"
- for(var/i=1,i<=choices.len,i++)
- var/votes = choices[choices[i]]
- if(!votes) votes = 0
- text += "[choices[i]]: [votes] ([(votes/clients.len)*100]%)
"
- else
+ if(question) text += "[question]"
+ else text += "[capitalize(mode)] Vote"
+ if(mode != "custom")
if(winners.len > 1)
- text = "Vote Tied Between:\n"
+ text = "\nVote Tied Between:"
for(var/option in winners)
- text += "\t[option]\n"
+ text += "\n\t[option]"
. = pick(winners)
- text += "Vote Result: [.]"
+ text += "\nVote Result: [.]"
+ for(var/i=1,i<=choices.len,i++)
+ var/votes = choices[choices[i]]
+ if(!votes) votes = 0
+ text += "\n[choices[i]]: [votes] ([(votes/clients.len)*100]%)"
else
text += "Vote Result: Inconclusive - No Votes!"
log_vote(text)
- world << "[text]"
+ world << "\n[text]"
return .
proc/result()
@@ -174,7 +174,7 @@ datum/controller/vote
if(mode == "custom")
text += "\n[question]"
log_vote(text)
- world << "[text]\nType vote to place your votes.\nYou have [config.vote_period/10] seconds to vote."
+ world << "\n[text]\nType vote to place your votes.\nYou have [config.vote_period/10] seconds to vote."
time_remaining = round(config.vote_period/10)
return 1
return 0