summaryrefslogtreecommitdiff
path: root/src/game-server/mapreader.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-05-19 15:07:45 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-05-19 15:07:45 +0000
commit502d5c892c92b4a71eceae1d275032100d42dd23 (patch)
tree81f29c3ce0bda3d2a4221a485c9695d4e56eb568 /src/game-server/mapreader.cpp
parent4b4b6d0865f5f04f73e04926fb9e6b610f0a71a7 (diff)
downloadmanaserv-502d5c892c92b4a71eceae1d275032100d42dd23.tar.gz
manaserv-502d5c892c92b4a71eceae1d275032100d42dd23.tar.bz2
manaserv-502d5c892c92b4a71eceae1d275032100d42dd23.tar.xz
manaserv-502d5c892c92b4a71eceae1d275032100d42dd23.zip
Implemented NPC names. Implemented the theoretical possibility to have named monsters along the way. Note that the syntax of the LUA functions for creating NPCs has changed.
Diffstat (limited to 'src/game-server/mapreader.cpp')
-rw-r--r--src/game-server/mapreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/mapreader.cpp b/src/game-server/mapreader.cpp
index 39d209d6..3d0a82ff 100644
--- a/src/game-server/mapreader.cpp
+++ b/src/game-server/mapreader.cpp
@@ -323,7 +323,7 @@ static Map *readMap(xmlNodePtr node, std::string const &path, MapComposite *comp
if (npcId != -1 && scriptText != NULL)
{
- s->loadNPC(npcId, objX, objY, scriptText);
+ s->loadNPC(objName, npcId, objX, objY, scriptText);
}
else
{