summaryrefslogtreecommitdiff
path: root/src/net/beinghandler.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-05-19 15:10:50 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-05-19 15:10:50 +0000
commit25ae0888d39ff370bfe8fa3f4f5eb572dbbe59ec (patch)
tree589eda78b0a20e075925a38117d13fb752b8260a /src/net/beinghandler.cpp
parentb87f51fcfe98adbce9fcb9e5a4bb54c9daf9b10a (diff)
downloadmana-25ae0888d39ff370bfe8fa3f4f5eb572dbbe59ec.tar.gz
mana-25ae0888d39ff370bfe8fa3f4f5eb572dbbe59ec.tar.bz2
mana-25ae0888d39ff370bfe8fa3f4f5eb572dbbe59ec.tar.xz
mana-25ae0888d39ff370bfe8fa3f4f5eb572dbbe59ec.zip
Diffstat (limited to 'src/net/beinghandler.cpp')
-rw-r--r--src/net/beinghandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp
index f31ee48b..b1c502e1 100644
--- a/src/net/beinghandler.cpp
+++ b/src/net/beinghandler.cpp
@@ -490,6 +490,8 @@ BeingHandler::handleBeingEnterMessage(MessageIn &msg)
{
int subtype = msg.readInt16();
being = beingManager->createBeing(id, type, subtype);
+ std::string name = msg.readString();
+ if (name.length() > 0) being->setName(name);
} break;
default: