diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-31 13:14:28 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-31 13:14:28 +0000 |
| commit | 132da5396b83405801e3271094359e8d5b88d5ab (patch) | |
| tree | 7ce40dc97bb6cbd5d04f42c9776887236acf5b26 /src/game/client/components/emoticon.cpp | |
| parent | cd7a3519a7a4e9914906d96b603cefdbf3a58a0e (diff) | |
| download | zcatch-132da5396b83405801e3271094359e8d5b88d5ab.tar.gz zcatch-132da5396b83405801e3271094359e8d5b88d5ab.zip | |
added emot command
Diffstat (limited to 'src/game/client/components/emoticon.cpp')
| -rw-r--r-- | src/game/client/components/emoticon.cpp | 6 |
1 files changed, 6 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() |