diff options
Diffstat (limited to 'src/resources/beingcommon.cpp')
-rw-r--r-- | src/resources/beingcommon.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resources/beingcommon.cpp b/src/resources/beingcommon.cpp index ec3744da0..7401933a6 100644 --- a/src/resources/beingcommon.cpp +++ b/src/resources/beingcommon.cpp @@ -58,15 +58,16 @@ void BeingCommon::readWalkingAttributes(BeingInfo *const info, XmlNodePtrConst node, const int moreBlockFlags) { - unsigned char block = 0; + uint8_t block = 0; std::string walkStr = XML::getProperty( node, "walkType", "walk"); - const unsigned char allFlags = BlockMask::GROUND | + const uint8_t allFlags = CAST_U8( + BlockMask::GROUND | BlockMask::WALL | BlockMask::WATER | BlockMask::AIR | - moreBlockFlags; + moreBlockFlags); StringVect tokens; splitToStringVector(tokens, walkStr, ','); FOR_EACH (StringVectCIter, it, tokens) |