about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-08-31 13:14:28 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-08-31 13:14:28 +0000
commit132da5396b83405801e3271094359e8d5b88d5ab (patch)
tree7ce40dc97bb6cbd5d04f42c9776887236acf5b26 /src/game/client
parentcd7a3519a7a4e9914906d96b603cefdbf3a58a0e (diff)
downloadzcatch-132da5396b83405801e3271094359e8d5b88d5ab.tar.gz
zcatch-132da5396b83405801e3271094359e8d5b88d5ab.zip
added emot command
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/components/emoticon.cpp6
-rw-r--r--src/game/client/components/emoticon.hpp1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/game/client/components/emoticon.cpp b/src/game/client/components/emoticon.cpp
index bed050dd..af60ac19 100644
--- a/src/game/client/components/emoticon.cpp
+++ b/src/game/client/components/emoticon.cpp
@@ -18,9 +18,15 @@ void EMOTICON::con_key_emoticon(void *result, void *user_data)
 	((EMOTICON *)user_data)->active = console_arg_int(result, 0) != 0;
 }
 
+void EMOTICON::con_emote(void *result, void *user_data)
+{
+	((EMOTICON *)user_data)->emote(console_arg_int(result, 0));
+}
+
 void EMOTICON::on_init()
 {
 	MACRO_REGISTER_COMMAND("+emote", "", con_key_emoticon, this);
+	MACRO_REGISTER_COMMAND("emote", "", con_emote, this);
 }
 
 void EMOTICON::on_reset()
diff --git a/src/game/client/components/emoticon.hpp b/src/game/client/components/emoticon.hpp
index 1acb741d..22e1c44b 100644
--- a/src/game/client/components/emoticon.hpp
+++ b/src/game/client/components/emoticon.hpp
@@ -12,6 +12,7 @@ class EMOTICON : public COMPONENT
 	int selected_emote;
 
 	static void con_key_emoticon(void *result, void *user_data);
+	static void con_emote(void *result, void *user_data);
 	
 public:
 	EMOTICON();