diff options
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 18 |
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; |