summaryrefslogtreecommitdiff
path: root/src/net/tmwa/specialhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-05 03:41:13 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-05 03:41:13 +0300
commitd0571ca16bb4ef11a718cfa78dc29b57080fcc72 (patch)
treeadd362fa6b01bb83c608a78b3a56bf8b52136767 /src/net/tmwa/specialhandler.cpp
parent0202b0b4cdac57a04a3765f6bca893bd3b5c9812 (diff)
downloadplus-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.gz
plus-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.bz2
plus-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.xz
plus-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.zip
Add ability to send client states to other clients.
Using for this emotes.
Diffstat (limited to 'src/net/tmwa/specialhandler.cpp')
-rw-r--r--src/net/tmwa/specialhandler.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/tmwa/specialhandler.cpp b/src/net/tmwa/specialhandler.cpp
index 19713a0bf..1e6249a51 100644
--- a/src/net/tmwa/specialhandler.cpp
+++ b/src/net/tmwa/specialhandler.cpp
@@ -23,6 +23,7 @@
#include "net/tmwa/specialhandler.h"
#include "log.h"
+#include "localplayer.h"
#include "playerinfo.h"
#include "gui/skilldialog.h"
@@ -152,6 +153,12 @@ void SpecialHandler::handleMessage(Net::MessageIn &msg)
std::string msg;
if (success == SKILL_FAILED && skillId == SKILL_BASIC)
{
+ if (player_node && bskill == BSKILL_EMOTE
+ && reason == RFAIL_SKILLDEP)
+ {
+ player_node->stopAdvert();
+ }
+
switch (bskill)
{
case BSKILL_TRADE: