From 0b0a97f400f3e6a11348151e5197f8c264e0fd96 Mon Sep 17 00:00:00 2001 From: fokkonaut <35420825+fokkonaut@users.noreply.github.com> Date: Tue, 2 Jul 2024 18:27:26 +0200 Subject: [PATCH] fix warning --- src/game/editor/layer_tiles.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/game/editor/layer_tiles.cpp b/src/game/editor/layer_tiles.cpp index 4d5a1b04a..ca709f743 100644 --- a/src/game/editor/layer_tiles.cpp +++ b/src/game/editor/layer_tiles.cpp @@ -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 @@ -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)