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/character.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/character.cpp')
-rw-r--r-- | src/game-server/character.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp index ccd629e8..031cf87c 100644 --- a/src/game-server/character.cpp +++ b/src/game-server/character.cpp @@ -34,6 +34,7 @@ #include "game-server/item.h" #include "game-server/itemmanager.h" #include "game-server/gamehandler.h" +#include "game-server/map.h" #include "game-server/mapcomposite.h" #include "game-server/mapmanager.h" #include "game-server/skillmanager.h" @@ -97,6 +98,8 @@ Character::Character(MessageIn &msg): it1_end = attr.end(); it1 != it1_end; ++it1) mAttributes.insert(std::make_pair(it1->first, Attribute(*it1->second))); + setWalkMask(Map::BLOCKMASK_WALL | Map::BLOCKMASK_MONSTER); + // Get character data. mDatabaseID = msg.readInt32(); setName(msg.readString()); |