mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Revert "Fix AntibotDestroy
being called twice"
This reverts commit efb3106b71
.
This commit is contained in:
parent
efb3106b71
commit
d50547ea42
|
@ -25,6 +25,9 @@ CAntibot::CAntibot()
|
|||
}
|
||||
CAntibot::~CAntibot()
|
||||
{
|
||||
AntibotDestroy();
|
||||
free(g_Data.m_Map.m_pTiles);
|
||||
g_Data.m_Map.m_pTiles = 0;
|
||||
}
|
||||
void CAntibot::Init(CGameContext *pGameContext)
|
||||
{
|
||||
|
@ -37,12 +40,6 @@ void CAntibot::Init(CGameContext *pGameContext)
|
|||
AntibotInit(&g_Data);
|
||||
Update();
|
||||
}
|
||||
void CAntibot::Shutdown()
|
||||
{
|
||||
AntibotDestroy();
|
||||
free(g_Data.m_Map.m_pTiles);
|
||||
g_Data.m_Map.m_pTiles = 0;
|
||||
}
|
||||
void CAntibot::Dump() { AntibotDump(); }
|
||||
void CAntibot::Update()
|
||||
{
|
||||
|
@ -75,9 +72,6 @@ void CAntibot::Dump()
|
|||
{
|
||||
m_pGameContext->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "antibot", "antibot support not compiled in");
|
||||
}
|
||||
void CAntibot::Shutdown()
|
||||
{
|
||||
}
|
||||
void CAntibot::Update()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -11,7 +11,6 @@ public:
|
|||
CAntibot();
|
||||
~CAntibot();
|
||||
void Init(CGameContext *pGameContext);
|
||||
void Shutdown();
|
||||
void Dump();
|
||||
|
||||
void OnPlayerInit(int ClientID);
|
||||
|
|
|
@ -3044,8 +3044,6 @@ void CGameContext::OnShutdown(bool FullShutdown)
|
|||
if (FullShutdown)
|
||||
Score()->OnShutdown();
|
||||
|
||||
m_Antibot.Shutdown();
|
||||
|
||||
if(m_TeeHistorianActive)
|
||||
{
|
||||
m_TeeHistorian.Finish();
|
||||
|
|
Loading…
Reference in a new issue