From 84d53b7bb98bb44696ed1bc2c3f132e51394ac00 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 Mar 2013 15:42:07 +0300 Subject: Fix some issues from previous commits. --- src/map.cpp | 18 +++++++++--------- 1 file 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(start + s->size()); + const int start = s2->getFirstGid(); + const int end = static_cast(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; -- cgit v1.2.3-70-g09d2