From f1b6848d8560adfa6ce5d11cf4cc8a6b03fcdece Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sat, 30 Apr 2016 22:37:17 +0200 Subject: [PATCH] dont remove unused tiles --- src/game/collision.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/game/collision.cpp b/src/game/collision.cpp index 9aa58a036..09b1cc55b 100644 --- a/src/game/collision.cpp +++ b/src/game/collision.cpp @@ -106,17 +106,6 @@ void CCollision::Init(class CLayers *pLayers) m_pSwitch[i].m_Type = 0; } } - if(m_pFront) - { - // remove unused tiles from front layer - Index = m_pFront[i].m_Index; - if(!IsValidFrontTile(Index)) - m_pFront[i].m_Index = 0; - } - // remove unused tiles from game layer - Index = m_pTiles[i].m_Index; - if(!IsValidGameTile(Index)) - m_pTiles[i].m_Index = 0; } if(m_NumSwitchers)