sample_mm/sample_mm.cpp
changeset 637 b66489d8aedc
parent 605 131878209276
child 678 c676a9ce0320
     1.1 --- a/sample_mm/sample_mm.cpp	Mon Feb 16 18:13:31 2009 -0500
     1.2 +++ b/sample_mm/sample_mm.cpp	Wed Feb 18 01:38:23 2009 -0600
     1.3 @@ -100,7 +100,7 @@
     1.4  	SH_ADD_HOOK_MEMFUNC(IServerGameClients, ClientConnect, gameclients, this, &SamplePlugin::Hook_ClientConnect, false);
     1.5  	SH_ADD_HOOK_MEMFUNC(IServerGameClients, ClientCommand, gameclients, this, &SamplePlugin::Hook_ClientCommand, false);
     1.6  
     1.7 -#if SOURCE_ENGINE == SE_EPISODEONE
     1.8 +#if !defined METAMOD_PLAPI_VERSION
     1.9  	m_EngineCC = SH_GET_CALLCLASS(engine);
    1.10  #endif
    1.11  
    1.12 @@ -130,7 +130,7 @@
    1.13  	SH_REMOVE_HOOK_MEMFUNC(IServerGameClients, ClientConnect, gameclients, this, &SamplePlugin::Hook_ClientConnect, false);
    1.14  	SH_REMOVE_HOOK_MEMFUNC(IServerGameClients, ClientCommand, gameclients, this, &SamplePlugin::Hook_ClientCommand, false);
    1.15  
    1.16 -#if SOURCE_ENGINE == SE_EPISODEONE
    1.17 +#if !defined METAMOD_PLAPI_VERSION
    1.18  	SH_RELEASE_CALLCLASS(m_EngineCC);
    1.19  #endif
    1.20  
    1.21 @@ -165,7 +165,7 @@
    1.22  void SamplePlugin::Hook_ClientCommand(edict_t *pEntity)
    1.23  #endif
    1.24  {
    1.25 -#if SOURCE_ENGINE == SE_EPISODEONE
    1.26 +#if SOURCE_ENGINE <= SE_DARKMESSIAH
    1.27  	CCommand args;
    1.28  #endif
    1.29