diff -r dcfa04423230 -r 131878209276 sample_mm/sample_mm.h --- a/sample_mm/sample_mm.h Mon Nov 24 07:50:01 2008 -0600 +++ b/sample_mm/sample_mm.h Mon Nov 24 12:03:02 2008 -0600 @@ -27,7 +27,7 @@ #define snprintf _snprintf #endif -class StubPlugin : public ISmmPlugin, public IMetamodListener +class SamplePlugin : public ISmmPlugin, public IMetamodListener { public: bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late); @@ -57,9 +57,9 @@ const char *pszAddress, char *reject, int maxrejectlen); -#if defined ENGINE_ORANGEBOX +#if SOURCE_ENGINE >= SE_ORANGEBOX void Hook_ClientCommand(edict_t *pEntity, const CCommand &args); -#elif defined ENGINE_ORIGINAL +#else void Hook_ClientCommand(edict_t *pEntity); #endif public: @@ -72,12 +72,12 @@ const char *GetDate(); const char *GetLogTag(); private: -#if defined ENGINE_ORIGINAL +#if SOURCE_ENGINE == SE_EPISODEONE SourceHook::CallClass *m_EngineCC; #endif }; -extern StubPlugin g_StubPlugin; +extern SamplePlugin g_SamplePlugin; PLUGIN_GLOBALVARS();