removed unused Dest function for layers

This commit is contained in:
HMH 2017-07-28 14:43:03 +02:00
parent 5877b17f5a
commit d03e91153c
4 changed files with 0 additions and 16 deletions

View file

@ -32,15 +32,11 @@ CCollision::CCollision()
CCollision::~CCollision()
{
if(m_pLayers)
m_pLayers->Dest();
Dest();
}
void CCollision::Init(class CLayers *pLayers)
{
if(m_pLayers)
m_pLayers->Dest();
Dest();
m_NumSwitchers = 0;
m_pLayers = pLayers;

View file

@ -169,13 +169,3 @@ CMapItemLayer *CLayers::GetLayer(int Index) const
return static_cast<CMapItemLayer *>(m_pMap->GetItem(m_LayersStart+Index, 0, 0));
}
// DDRace
void CLayers::Dest()
{
/*m_pTeleLayer = 0;
m_pSpeedupLayer = 0;
m_pFrontLayer = 0;
m_pSwitchLayer = 0;
m_pTuneLayer = 0;*/
}

View file

@ -29,7 +29,6 @@ public:
// DDRace
void Dest();
CMapItemLayerTilemap *TeleLayer() const { return m_pTeleLayer; };
CMapItemLayerTilemap *SpeedupLayer() const { return m_pSpeedupLayer; };
CMapItemLayerTilemap *FrontLayer() const { return m_pFrontLayer; };

View file

@ -2790,7 +2790,6 @@ void CGameContext::OnShutdown(bool FullShutdown)
DeleteTempfile();
Console()->ResetServerGameSettings();
Layers()->Dest();
Collision()->Dest();
delete m_pController;
m_pController = 0;