Voting Overhaul

Transfer vote delay is counted from vote end, so it doesn't conflict with invalid or cancelled votes. Or other votes.

TRANSFER_TIMEOUT added as a config option, default value is 2 hours. No transfer votes before 2 hours.

Transfer votes before 3 hour mark require 2/3rds majority to pass again. Credit to SoundScopes for the original snippet.
This commit is contained in:
skull132
2016-03-25 16:09:03 +02:00
parent 8d1de33271
commit 5b147ac05b
4 changed files with 37 additions and 12 deletions
+1
View File
@@ -641,6 +641,7 @@
if(statpanel("Status") && ticker && ticker.current_state != GAME_STATE_PREGAME)
stat("Station Time", worldtime2text())
stat("Round Duration", round_duration())
stat("Last Transfer Vote", vote.last_transfer_vote ? time2text(vote.last_transfer_vote, "hh:mm") : "Never")
if(client.holder)
if(statpanel("Status"))