summaryrefslogtreecommitdiff
path: root/src/game-server/npc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/npc.cpp')
-rw-r--r--src/game-server/npc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game-server/npc.cpp b/src/game-server/npc.cpp
index 5583c3d5..82cd6a51 100644
--- a/src/game-server/npc.cpp
+++ b/src/game-server/npc.cpp
@@ -20,6 +20,7 @@
#include "game-server/character.h"
#include "game-server/gamehandler.h"
+#include "game-server/map.h"
#include "game-server/npc.h"
#include "net/messageout.h"
#include "scripting/script.h"
@@ -30,6 +31,8 @@ NPC::NPC(const std::string &name, int id):
mID(id),
mEnabled(true)
{
+ setWalkMask(Map::BLOCKMASK_WALL | Map::BLOCKMASK_MONSTER |
+ Map::BLOCKMASK_CHARACTER);
setName(name);
}