summaryrefslogtreecommitdiff
path: root/src/resources/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-10-19 06:55:28 +0300
committerAndrei Karas <akaras@inbox.ru>2018-10-19 06:55:28 +0300
commit98c74738f21d7ae256f1273b6c1614ee64e2a3ad (patch)
tree95a1af0071c774021c781611d215fee84358a807 /src/resources/map
parenta0b050fd82177f38b8bbf3360159d57886e2a347 (diff)
downloadplus-98c74738f21d7ae256f1273b6c1614ee64e2a3ad.tar.gz
plus-98c74738f21d7ae256f1273b6c1614ee64e2a3ad.tar.bz2
plus-98c74738f21d7ae256f1273b6c1614ee64e2a3ad.tar.xz
plus-98c74738f21d7ae256f1273b6c1614ee64e2a3ad.zip
Fix code style.
Diffstat (limited to 'src/resources/map')
-rw-r--r--src/resources/map/map.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp
index adda1bcb7..bcec1a4a3 100644
--- a/src/resources/map/map.cpp
+++ b/src/resources/map/map.cpp
@@ -1598,8 +1598,7 @@ void Map::reduce() restrict2
++ ri;
continue;
}
- const size_t pos = CAST_SIZE(
- x + y * layer2->mWidth);
+ const size_t pos = x + y * CAST_SIZE(layer2->mWidth);
img = layer2->mTiles[pos].image;
if (img != nullptr)
{