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/mapreader.cpp | |
parent | d2e83863e6e5faa6d6eeb3ab0c0a384dac3a0a11 (diff) | |
download | mv-61350cc4f65d53dd3add0c15558f6017b18ddbea.tar.gz mv-61350cc4f65d53dd3add0c15558f6017b18ddbea.tar.bz2 mv-61350cc4f65d53dd3add0c15558f6017b18ddbea.tar.xz mv-61350cc4f65d53dd3add0c15558f6017b18ddbea.zip |
Add monster walktype attribute to detect on what collisions monster can move.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r-- | src/resources/mapreader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 5bec46bdd..6d0a6fa4f 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -415,6 +415,9 @@ inline static void setTile(Map *map, MapLayer *layer, int x, int y, int gid) { switch (gid - set->getFirstGid()) { + case Map::COLLISION_EMPTY: + map->blockTile(x, y, Map::BLOCKTYPE_GROUND); + break; case Map::COLLISION_WALL: map->blockTile(x, y, Map::BLOCKTYPE_WALL); break; |