From eac9658b7395a45d0b48cad340fd9ccf7bec0fde Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 29 Sep 2008 11:34:49 +0000 Subject: added voting gui and a lot of other minor changes --- src/game/client/components/voting.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/client/components/voting.hpp') diff --git a/src/game/client/components/voting.hpp b/src/game/client/components/voting.hpp index 03de629d..78e561c7 100644 --- a/src/game/client/components/voting.hpp +++ b/src/game/client/components/voting.hpp @@ -21,6 +21,8 @@ class VOTING : public COMPONENT char command[512]; int voted; + void callvote(const char *type, const char *value); + public: VOTING(); virtual void on_reset(); @@ -30,6 +32,9 @@ public: void render_bars(RECT bars, bool text); + void callvote_kick(int client_id); + void callvote_map(const char *map); + void vote(int v); // -1 = no, 1 = yes int seconds_left() { return (closetime - time_get())/time_freq(); } -- cgit 1.4.1