about summary refs log tree commit diff
path: root/src/game/client/components/voting.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components/voting.hpp')
-rw-r--r--src/game/client/components/voting.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/client/components/voting.hpp b/src/game/client/components/voting.hpp
index 6f518d10..e5338d10 100644
--- a/src/game/client/components/voting.hpp
+++ b/src/game/client/components/voting.hpp
@@ -29,6 +29,7 @@ public:
 	
 	void vote(int v); // -1 = no, 1 = yes
 	
+	int seconds_left() { return (closetime - time_get())/time_freq(); }
 	bool is_voting() { return closetime != 0; }
 	int taken_choice() const { return voted; }
 	const char *vote_description() const { return description; }