diff --git a/bot/gamemodes.cpp b/bot/gamemodes.cpp index 8a0a2be..420032c 100644 --- a/bot/gamemodes.cpp +++ b/bot/gamemodes.cpp @@ -55,6 +55,7 @@ bool CGameMode::Load(char* pFileName) if (err != AMX_ERR_NONE) { AMXPrintError(this, &m_amx, err); + //logprintf("Failed to load '%s' script.", szGameModeFileName); return false; } @@ -63,6 +64,7 @@ bool CGameMode::Load(char* pFileName) amx_StringInit(&m_amx); amx_FileInit(&m_amx); amx_TimeInit(&m_amx); + //amx_DGramInit(&m_amx); amx_CustomInit(&m_amx); // Execute OnGameModeInit callback, if it exists! @@ -100,6 +102,7 @@ void CGameMode::Unload() if (m_bInitialised) { aux_FreeProgram(&m_amx); + //amx_DGramCleanup(&m_amx); amx_TimeCleanup(&m_amx); amx_FileCleanup(&m_amx); amx_StringCleanup(&m_amx); diff --git a/bot/gamemodes.h b/bot/gamemodes.h index 5facae2..9696bf6 100644 --- a/bot/gamemodes.h +++ b/bot/gamemodes.h @@ -22,7 +22,6 @@ public: bool Load(char* pFileName); void Unload(); - void Frame(float fElapsedTime); int CallPublic(char* szFuncName);