diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-05 19:32:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-05 19:32:36 +0300 |
commit | 92d4c783c463433a202649c87e78dab3ad918daf (patch) | |
tree | d259f1fcb64b68a0d255eb3ca983ee5c8552001e /src/net/ea/beinghandler.cpp | |
parent | 9539093c42bc459aaa1a1053d0e31b03d0839824 (diff) | |
download | plus-92d4c783c463433a202649c87e78dab3ad918daf.tar.gz plus-92d4c783c463433a202649c87e78dab3ad918daf.tar.bz2 plus-92d4c783c463433a202649c87e78dab3ad918daf.tar.xz plus-92d4c783c463433a202649c87e78dab3ad918daf.zip |
Send name request in legacy servers if npc was deleted and created at same time.
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 5 |
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) |