diff -r 3ec9092c5dc8 -r c676a9ce0320 sample_mm/sample_mm.cpp --- a/sample_mm/sample_mm.cpp Mon Nov 02 11:08:56 2009 -0600 +++ b/sample_mm/sample_mm.cpp Fri Nov 13 18:25:56 2009 -0600 @@ -1,5 +1,5 @@ /** - * vim: set ts=4 : + * vim: set ts=4 sw=4 tw=99 noet : * ====================================================== * Metamod:Source Sample Plugin * Written by AlliedModders LLC. @@ -10,8 +10,6 @@ * the use of this software. * * This sample plugin is public domain. - * - * Version: $Id$ */ #include @@ -80,9 +78,7 @@ META_LOG(g_PLAPI, "Starting plugin."); /* Load the VSP listener. This is usually needed for IServerPluginHelpers. */ -#if defined METAMOD_PLAPI_VERSION if ((vsp_callbacks = ismm->GetVSPInfo(NULL)) == NULL) -#endif { ismm->AddListener(this, this); ismm->EnableVSPListener(); @@ -100,11 +96,7 @@ SH_ADD_HOOK_MEMFUNC(IServerGameClients, ClientConnect, gameclients, this, &SamplePlugin::Hook_ClientConnect, false); SH_ADD_HOOK_MEMFUNC(IServerGameClients, ClientCommand, gameclients, this, &SamplePlugin::Hook_ClientCommand, false); -#if !defined METAMOD_PLAPI_VERSION - m_EngineCC = SH_GET_CALLCLASS(engine); -#endif - - ENGINE_CALL(&IVEngineServer::LogPrint)("All hooks started!\n"); + ENGINE_CALL(LogPrint)("All hooks started!\n"); #if SOURCE_ENGINE >= SE_ORANGEBOX g_pCVar = icvar; @@ -130,10 +122,6 @@ SH_REMOVE_HOOK_MEMFUNC(IServerGameClients, ClientConnect, gameclients, this, &SamplePlugin::Hook_ClientConnect, false); SH_REMOVE_HOOK_MEMFUNC(IServerGameClients, ClientCommand, gameclients, this, &SamplePlugin::Hook_ClientCommand, false); -#if !defined METAMOD_PLAPI_VERSION - SH_RELEASE_CALLCLASS(m_EngineCC); -#endif - return true; }