sample_mm/sample_mm.cpp
changeset 678 c676a9ce0320
parent 637 b66489d8aedc
     1.1 --- a/sample_mm/sample_mm.cpp	Mon Nov 02 11:08:56 2009 -0600
     1.2 +++ b/sample_mm/sample_mm.cpp	Fri Nov 13 18:25:56 2009 -0600
     1.3 @@ -1,5 +1,5 @@
     1.4  /**
     1.5 - * vim: set ts=4 :
     1.6 + * vim: set ts=4 sw=4 tw=99 noet :
     1.7   * ======================================================
     1.8   * Metamod:Source Sample Plugin
     1.9   * Written by AlliedModders LLC.
    1.10 @@ -10,8 +10,6 @@
    1.11   * the use of this software.
    1.12   *
    1.13   * This sample plugin is public domain.
    1.14 - *
    1.15 - * Version: $Id$
    1.16   */
    1.17  
    1.18  #include <stdio.h>
    1.19 @@ -80,9 +78,7 @@
    1.20  	META_LOG(g_PLAPI, "Starting plugin.");
    1.21  
    1.22  	/* Load the VSP listener.  This is usually needed for IServerPluginHelpers. */
    1.23 -#if defined METAMOD_PLAPI_VERSION
    1.24  	if ((vsp_callbacks = ismm->GetVSPInfo(NULL)) == NULL)
    1.25 -#endif
    1.26  	{
    1.27  		ismm->AddListener(this, this);
    1.28  		ismm->EnableVSPListener();
    1.29 @@ -100,11 +96,7 @@
    1.30  	SH_ADD_HOOK_MEMFUNC(IServerGameClients, ClientConnect, gameclients, this, &SamplePlugin::Hook_ClientConnect, false);
    1.31  	SH_ADD_HOOK_MEMFUNC(IServerGameClients, ClientCommand, gameclients, this, &SamplePlugin::Hook_ClientCommand, false);
    1.32  
    1.33 -#if !defined METAMOD_PLAPI_VERSION
    1.34 -	m_EngineCC = SH_GET_CALLCLASS(engine);
    1.35 -#endif
    1.36 -
    1.37 -	ENGINE_CALL(&IVEngineServer::LogPrint)("All hooks started!\n");
    1.38 +	ENGINE_CALL(LogPrint)("All hooks started!\n");
    1.39  
    1.40  #if SOURCE_ENGINE >= SE_ORANGEBOX
    1.41  	g_pCVar = icvar;
    1.42 @@ -130,10 +122,6 @@
    1.43  	SH_REMOVE_HOOK_MEMFUNC(IServerGameClients, ClientConnect, gameclients, this, &SamplePlugin::Hook_ClientConnect, false);
    1.44  	SH_REMOVE_HOOK_MEMFUNC(IServerGameClients, ClientCommand, gameclients, this, &SamplePlugin::Hook_ClientCommand, false);
    1.45  
    1.46 -#if !defined METAMOD_PLAPI_VERSION
    1.47 -	SH_RELEASE_CALLCLASS(m_EngineCC);
    1.48 -#endif
    1.49 -
    1.50  	return true;
    1.51  }
    1.52