summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/net/beinghandler.cpp2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f0c5d0cc..5a49be8b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-19 Philipp Sehmisch <tmw@crushnet.org>
+
+ * src/net/beinghandler.cpp: Implemented interpretation of names for
+ NPCs and monsters.
+
2008-05-16 David Athay <ko2fan@gmail.com>
* src/gui/popupmenu.cpp: Applied QOAL's patch to fix popups at
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: