summaryrefslogtreecommitdiff
path: root/src/net/ea/beinghandler.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/ea/beinghandler.cpp
parent0202b0b4cdac57a04a3765f6bca893bd3b5c9812 (diff)
downloadManaVerse-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.gz
ManaVerse-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.bz2
ManaVerse-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.xz
ManaVerse-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.zip
Add ability to send client states to other clients.
Using for this emotes.
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r--src/net/ea/beinghandler.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 6875a067e..2da19ad36 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -82,15 +82,10 @@ Being *BeingHandler::createBeing(int id, short job)
if (type == ActorSprite::PLAYER || type == ActorSprite::NPC)
{
- if (!being->updateFromCache())
- {
- requestNameById(id);
- }
- else
- {
- if (player_node)
- player_node->checkNewName(being);
- }
+ being->updateFromCache();
+ requestNameById(id);
+ if (player_node)
+ player_node->checkNewName(being);
}
if (type == Being::PLAYER)
{