summaryrefslogtreecommitdiff
path: root/src/game-server/monster.cpp
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2012-03-13 16:18:38 +0100
committerErik Schilling <ablu.erikschilling@googlemail.com>2012-03-13 16:25:18 +0100
commit53cf65f40c64a0d2ea8757390179127222faa258 (patch)
treea82479f3e77df3021d2105dda604b8e5eb2a90c4 /src/game-server/monster.cpp
parent0075aa38fbde5c3df773cca320bcba615296624c (diff)
downloadmanaserv-53cf65f40c64a0d2ea8757390179127222faa258.tar.gz
manaserv-53cf65f40c64a0d2ea8757390179127222faa258.tar.bz2
manaserv-53cf65f40c64a0d2ea8757390179127222faa258.tar.xz
manaserv-53cf65f40c64a0d2ea8757390179127222faa258.zip
Added script bind to set walkmask for beings
TODO: Inform client about this change. Reviewed-by: bjorn.
Diffstat (limited to 'src/game-server/monster.cpp')
-rw-r--r--src/game-server/monster.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp
index 1e68892d..0bee4c9a 100644
--- a/src/game-server/monster.cpp
+++ b/src/game-server/monster.cpp
@@ -26,6 +26,7 @@
#include "game-server/character.h"
#include "game-server/collisiondetection.h"
#include "game-server/item.h"
+#include "game-server/map.h"
#include "game-server/mapcomposite.h"
#include "game-server/state.h"
#include "scripting/scriptmanager.h"
@@ -55,6 +56,8 @@ Monster::Monster(MonsterClass *specy):
{
LOG_DEBUG("Monster spawned! (id: " << mSpecy->getId() << ").");
+ setWalkMask(Map::BLOCKMASK_WALL | Map::BLOCKMASK_CHARACTER);
+
/*
* Initialise the attribute structures.
*/