summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-25 14:54:25 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-25 14:54:25 +0300
commit3e43345f804886a3a6ed7c0e378612612de4f4a5 (patch)
treeea7e36388a7ac1cc57ced5b33651b919302b3804 /src/net
parentdb67d909cfa5d6a53552bbdb80c215fb382f00d5 (diff)
downloadManaVerse-3e43345f804886a3a6ed7c0e378612612de4f4a5.tar.gz
ManaVerse-3e43345f804886a3a6ed7c0e378612612de4f4a5.tar.bz2
ManaVerse-3e43345f804886a3a6ed7c0e378612612de4f4a5.tar.xz
ManaVerse-3e43345f804886a3a6ed7c0e378612612de4f4a5.zip
add support for pet offsets if owner is sitting.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/beinghandler.cpp1
-rw-r--r--src/net/eathena/beinghandler.cpp1
-rw-r--r--src/net/tmwa/beinghandler.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 0a864bbac..3fbfdd2d7 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -515,6 +515,7 @@ void BeingHandler::processBeingAction(Net::MessageIn &msg) const
if (srcBeing)
{
srcBeing->setAction(Being::SIT, 0);
+ srcBeing->updatePet();
if (srcBeing->getType() == Being::PLAYER)
{
srcBeing->setMoveTime();
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 108e6b50f..196196a07 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -586,6 +586,7 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg,
case 2:
dstBeing->setAction(Being::SIT, 0);
+ dstBeing->updatePet();
player_node->imitateAction(dstBeing, Being::SIT);
break;
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index cfb25fa49..de2a25946 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -612,6 +612,7 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg,
case 2:
dstBeing->setAction(Being::SIT, 0);
+ dstBeing->updatePet();
player_node->imitateAction(dstBeing, Being::SIT);
break;