summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-11 15:42:07 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-11 15:42:07 +0300
commit84d53b7bb98bb44696ed1bc2c3f132e51394ac00 (patch)
treec122b5a7290a8a62d803a987ca5dfc5e5649b89c
parentcd51470e6fe2cc30b6d533cc0183639041613680 (diff)
downloadmanaplus-84d53b7bb98bb44696ed1bc2c3f132e51394ac00.tar.gz
manaplus-84d53b7bb98bb44696ed1bc2c3f132e51394ac00.tar.bz2
manaplus-84d53b7bb98bb44696ed1bc2c3f132e51394ac00.tar.xz
manaplus-84d53b7bb98bb44696ed1bc2c3f132e51394ac00.zip
Fix some issues from previous commits.
-rw-r--r--src/map.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 6b30fca21..db2a46ef8 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1381,15 +1381,15 @@ void Map::indexTilesets()
FOR_EACH (Tilesets::const_iterator, it, mTilesets)
{
- Tileset *const s = *it;
- if (s)
+ Tileset *const s2 = *it;
+ if (s2)
{
- const int start = s->getFirstGid();
- const int end = static_cast<int>(start + s->size());
+ const int start = s2->getFirstGid();
+ const int end = static_cast<int>(start + s2->size());
for (int f = start; f < end; f ++)
{
if (f < size)
- mIndexedTilesets[f] = s;
+ mIndexedTilesets[f] = s2;
}
}
}
@@ -1514,12 +1514,12 @@ void Map::reduce()
++ ri;
while (ri != mLayers.rend())
{
- MapLayer *const layer = *ri;
- const size_t pos = x + y * layer->mWidth;
- img = layer->mTiles[pos];
+ MapLayer *const layer2 = *ri;
+ const size_t pos = x + y * layer2->mWidth;
+ img = layer2->mTiles[pos];
if (img)
{
- layer->mTiles[pos] = nullptr;
+ layer2->mTiles[pos] = nullptr;
cnt ++;
}
++ ri;