From d0571ca16bb4ef11a718cfa78dc29b57080fcc72 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 Jul 2011 03:41:13 +0300 Subject: Add ability to send client states to other clients. Using for this emotes. --- src/net/tmwa/specialhandler.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/net/tmwa/specialhandler.cpp') 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: -- cgit v1.2.3-70-g09d2