summaryrefslogtreecommitdiff
path: root/src/resources/beingcommon.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-09 20:30:47 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-09 20:30:47 +0300
commit407de0a8d0898b28a587962e997df816cb17b6a9 (patch)
tree99a0184bb44950a900a9f093afb8887bdd148548 /src/resources/beingcommon.cpp
parent972fdcbd1ed61e2528c8b4c733f21a70d7f674b1 (diff)
downloadplus-407de0a8d0898b28a587962e997df816cb17b6a9.tar.gz
plus-407de0a8d0898b28a587962e997df816cb17b6a9.tar.bz2
plus-407de0a8d0898b28a587962e997df816cb17b6a9.tar.xz
plus-407de0a8d0898b28a587962e997df816cb17b6a9.zip
Fix code style.
Diffstat (limited to 'src/resources/beingcommon.cpp')
-rw-r--r--src/resources/beingcommon.cpp7
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)