mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +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()
|
||||
{
|
||||
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;
|
||||
|
|
|
@ -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;*/
|
||||
}
|
||||
|
|
|
@ -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; };
|
||||
|
|
|
@ -2790,7 +2790,6 @@ void CGameContext::OnShutdown(bool FullShutdown)
|
|||
|
||||
DeleteTempfile();
|
||||
Console()->ResetServerGameSettings();
|
||||
Layers()->Dest();
|
||||
Collision()->Dest();
|
||||
delete m_pController;
|
||||
m_pController = 0;
|
||||
|
|
Loading…
Reference in a new issue