mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
removed unused Dest function for layers
This commit is contained in:
parent
5877b17f5a
commit
d03e91153c
|
@ -32,15 +32,11 @@ CCollision::CCollision()
|
||||||
|
|
||||||
CCollision::~CCollision()
|
CCollision::~CCollision()
|
||||||
{
|
{
|
||||||
if(m_pLayers)
|
|
||||||
m_pLayers->Dest();
|
|
||||||
Dest();
|
Dest();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCollision::Init(class CLayers *pLayers)
|
void CCollision::Init(class CLayers *pLayers)
|
||||||
{
|
{
|
||||||
if(m_pLayers)
|
|
||||||
m_pLayers->Dest();
|
|
||||||
Dest();
|
Dest();
|
||||||
m_NumSwitchers = 0;
|
m_NumSwitchers = 0;
|
||||||
m_pLayers = pLayers;
|
m_pLayers = pLayers;
|
||||||
|
|
|
@ -169,13 +169,3 @@ CMapItemLayer *CLayers::GetLayer(int Index) const
|
||||||
return static_cast<CMapItemLayer *>(m_pMap->GetItem(m_LayersStart+Index, 0, 0));
|
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;*/
|
|
||||||
}
|
|
||||||
|
|
|
@ -29,7 +29,6 @@ public:
|
||||||
|
|
||||||
// DDRace
|
// DDRace
|
||||||
|
|
||||||
void Dest();
|
|
||||||
CMapItemLayerTilemap *TeleLayer() const { return m_pTeleLayer; };
|
CMapItemLayerTilemap *TeleLayer() const { return m_pTeleLayer; };
|
||||||
CMapItemLayerTilemap *SpeedupLayer() const { return m_pSpeedupLayer; };
|
CMapItemLayerTilemap *SpeedupLayer() const { return m_pSpeedupLayer; };
|
||||||
CMapItemLayerTilemap *FrontLayer() const { return m_pFrontLayer; };
|
CMapItemLayerTilemap *FrontLayer() const { return m_pFrontLayer; };
|
||||||
|
|
|
@ -2790,7 +2790,6 @@ void CGameContext::OnShutdown(bool FullShutdown)
|
||||||
|
|
||||||
DeleteTempfile();
|
DeleteTempfile();
|
||||||
Console()->ResetServerGameSettings();
|
Console()->ResetServerGameSettings();
|
||||||
Layers()->Dest();
|
|
||||||
Collision()->Dest();
|
Collision()->Dest();
|
||||||
delete m_pController;
|
delete m_pController;
|
||||||
m_pController = 0;
|
m_pController = 0;
|
||||||
|
|
Loading…
Reference in a new issue