summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-05 19:32:36 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-05 19:32:36 +0300
commit92d4c783c463433a202649c87e78dab3ad918daf (patch)
treed259f1fcb64b68a0d255eb3ca983ee5c8552001e /src/net/ea
parent9539093c42bc459aaa1a1053d0e31b03d0839824 (diff)
downloadmanaverse-92d4c783c463433a202649c87e78dab3ad918daf.tar.gz
manaverse-92d4c783c463433a202649c87e78dab3ad918daf.tar.bz2
manaverse-92d4c783c463433a202649c87e78dab3ad918daf.tar.xz
manaverse-92d4c783c463433a202649c87e78dab3ad918daf.zip
Send name request in legacy servers if npc was deleted and created at same time.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/beinghandler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 5726f9ed0..cb8a2fa28 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -166,9 +166,12 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg,
}
else
{
- // undeleting marked for deletion being
if (dstBeing->getType() == Being::NPC)
+ {
actorSpriteManager->undelete(dstBeing);
+ if (serverVersion < 1)
+ requestNameById(id);
+ }
}
if (dstBeing->getType() == Being::PLAYER)