Revert "Fix AntibotDestroy being called twice"

This reverts commit efb3106b71.
This commit is contained in:
heinrich5991 2020-03-24 15:07:01 +01:00
parent efb3106b71
commit d50547ea42
3 changed files with 3 additions and 12 deletions

View file

@ -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()
{
}

View file

@ -11,7 +11,6 @@ public:
CAntibot();
~CAntibot();
void Init(CGameContext *pGameContext);
void Shutdown();
void Dump();
void OnPlayerInit(int ClientID);

View file

@ -3044,8 +3044,6 @@ void CGameContext::OnShutdown(bool FullShutdown)
if (FullShutdown)
Score()->OnShutdown();
m_Antibot.Shutdown();
if(m_TeeHistorianActive)
{
m_TeeHistorian.Finish();