Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fokkonaut committed Jul 2, 2024
1 parent 1750b57 commit 0b0a97f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/game/editor/layer_tiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ void CLayerTiles::PrepareForSave()
CTile Tile; // current tile to be duplicated
Tile.m_Skip = MAX_SKIP; // tell the code that we can't skip the first tile

int NumHitMaxSkip = -1;

for(int i = 0; i < m_Width * m_Height; i++)
{
// we can only store MAX_SKIP empty tiles in one tile
Expand All @@ -82,7 +80,6 @@ void CLayerTiles::PrepareForSave()
Tile = m_pTiles[i];
Tile.m_Skip = 0;
NumSaveTiles++;
NumHitMaxSkip++;
}
// tile is different from last one? - can't skip it
else if(m_pTiles[i].m_Index != Tile.m_Index || m_pTiles[i].m_Flags != Tile.m_Flags)
Expand Down

0 comments on commit 0b0a97f

Please sign in to comment.