diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-03-13 16:18:38 +0100 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-03-13 16:25:18 +0100 |
commit | 53cf65f40c64a0d2ea8757390179127222faa258 (patch) | |
tree | a82479f3e77df3021d2105dda604b8e5eb2a90c4 /src/game-server/monster.cpp | |
parent | 0075aa38fbde5c3df773cca320bcba615296624c (diff) | |
download | manaserv-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.cpp | 3 |
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. */ |