diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-19 22:50:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-19 22:50:16 +0300 |
commit | c65cb0d97fbaa37f531d6fb47ce9d798b001b637 (patch) | |
tree | cce1030add4a837913b9e730a5550a67d03d236e /src/resources/iteminfo.cpp | |
parent | 3d236906de18c846aa052f1d4cef1b0686a43854 (diff) | |
download | manaplus-c65cb0d97fbaa37f531d6fb47ce9d798b001b637.tar.gz manaplus-c65cb0d97fbaa37f531d6fb47ce9d798b001b637.tar.bz2 manaplus-c65cb0d97fbaa37f531d6fb47ce9d798b001b637.tar.xz manaplus-c65cb0d97fbaa37f531d6fb47ce9d798b001b637.zip |
fix code style.
Diffstat (limited to 'src/resources/iteminfo.cpp')
-rw-r--r-- | src/resources/iteminfo.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp index 6dbb90d2a..ca5d122b7 100644 --- a/src/resources/iteminfo.cpp +++ b/src/resources/iteminfo.cpp @@ -23,6 +23,7 @@ #include "resources/iteminfo.h" #include "resources/spriteaction.h" +#include "resources/spritedef.h" #include "resources/map/mapconsts.h" @@ -249,11 +250,17 @@ const SpriteToItemMap *ItemInfo::getSpriteToItemReplaceMap(const int direction) SpriteToItemMap *const spMap = mSpriteToItemReplaceMap[direction]; if (spMap) return spMap; - if (direction == SpriteDirection::UPLEFT || direction == SpriteDirection::UPRIGHT) + if (direction == SpriteDirection::UPLEFT + || direction == SpriteDirection::UPRIGHT) + { return mSpriteToItemReplaceMap[SpriteDirection::UP]; + } - if (direction == SpriteDirection::DOWNLEFT || direction == SpriteDirection::DOWNRIGHT) + if (direction == SpriteDirection::DOWNLEFT + || direction == SpriteDirection::DOWNRIGHT) + { return mSpriteToItemReplaceMap[SpriteDirection::DOWN]; + } return nullptr; } |