diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-05-21 03:07:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-21 03:07:34 +0300 |
commit | 61350cc4f65d53dd3add0c15558f6017b18ddbea (patch) | |
tree | dccde6c12fec3d5d9bfcfc25c48f7a5869b3f8ef /src/resources/beinginfo.cpp | |
parent | d2e83863e6e5faa6d6eeb3ab0c0a384dac3a0a11 (diff) | |
download | plus-61350cc4f65d53dd3add0c15558f6017b18ddbea.tar.gz plus-61350cc4f65d53dd3add0c15558f6017b18ddbea.tar.bz2 plus-61350cc4f65d53dd3add0c15558f6017b18ddbea.tar.xz plus-61350cc4f65d53dd3add0c15558f6017b18ddbea.zip |
Add monster walktype attribute to detect on what collisions monster can move.
Diffstat (limited to 'src/resources/beinginfo.cpp')
-rw-r--r-- | src/resources/beinginfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp index 96cc47f94..438de46dd 100644 --- a/src/resources/beinginfo.cpp +++ b/src/resources/beinginfo.cpp @@ -33,7 +33,8 @@ BeingInfo::BeingInfo(): mName(_("unnamed")), mTargetCursorSize(ActorSprite::TC_MEDIUM), mWalkMask(Map::BLOCKMASK_WALL | Map::BLOCKMASK_CHARACTER - | Map::BLOCKMASK_MONSTER), + | Map::BLOCKMASK_MONSTER | Map::BLOCKMASK_AIR + | Map::BLOCKMASK_WATER), mBlockType(Map::BLOCKTYPE_CHARACTER), mTargetOffsetX(0), mTargetOffsetY(0), mMaxHP(0), mStaticMaxHP(false) |