diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-08 01:19:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-08 01:19:49 +0300 |
commit | 10d3b05b00e913ee2e396facdb8d2ed2177efb53 (patch) | |
tree | 13fba88aa929ff536ab3acb0d31d32a148ad2bf9 /src/being.cpp | |
parent | f0f4b00290c3ae4b2b80bdef22d4ac56a863d35a (diff) | |
download | mv-10d3b05b00e913ee2e396facdb8d2ed2177efb53.tar.gz mv-10d3b05b00e913ee2e396facdb8d2ed2177efb53.tar.bz2 mv-10d3b05b00e913ee2e396facdb8d2ed2177efb53.tar.xz mv-10d3b05b00e913ee2e396facdb8d2ed2177efb53.zip |
Fix code style.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp index 090e7d10d..3d89c71ba 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -2188,7 +2188,8 @@ void Being::recalcSpritesOrder() if (info.mDrawBefore[dir] > 0) { int id2 = mSpriteIDs[info.mDrawBefore[dir]]; - std::map<int, int>::const_iterator orderIt = itemSlotRemap.find(id2); + std::map<int, int>::const_iterator + orderIt = itemSlotRemap.find(id2); if (orderIt != itemSlotRemap.end()) { // logger->log("found duplicate (before)"); @@ -2211,7 +2212,8 @@ void Being::recalcSpritesOrder() else if (info.mDrawAfter[dir] > 0) { int id2 = mSpriteIDs[info.mDrawAfter[dir]]; - std::map<int, int>::const_iterator orderIt = itemSlotRemap.find(id2); + std::map<int, int>::const_iterator + orderIt = itemSlotRemap.find(id2); if (orderIt != itemSlotRemap.end()) { // logger->log("found duplicate (after)"); @@ -2256,7 +2258,8 @@ void Being::recalcSpritesOrder() int idx1 = -1; // logger->log("item %d, id=%d", slot, id); int reorder = 0; - std::map<int, int>::const_iterator orderIt = itemSlotRemap.find(id); + std::map<int, int>::const_iterator + orderIt = itemSlotRemap.find(id); if (orderIt != itemSlotRemap.end()) reorder = orderIt->second; |