diff -r 63d54a87df53 -r e6abd02a6a95 sample_mm/sample_mm.h --- a/sample_mm/sample_mm.h Sun Feb 17 22:03:10 2008 +0000 +++ b/sample_mm/sample_mm.h Sun Feb 17 22:56:20 2008 +0000 @@ -23,6 +23,10 @@ #include #include "engine_wrappers.h" +#if defined WIN32 && !defined snprintf +#define snprintf _snprintf +#endif + class StubPlugin : public ISmmPlugin, public IMetamodListener { public: @@ -53,9 +57,9 @@ const char *pszAddress, char *reject, int maxrejectlen); -#if defined ORANGEBOX_BUILD +#if defined ENGINE_ORANGEBOX void Hook_ClientCommand(edict_t *pEntity, const CCommand &args); -#else +#elif defined ENGINE_ORIGINAL void Hook_ClientCommand(edict_t *pEntity); #endif public: @@ -68,7 +72,9 @@ const char *GetDate(); const char *GetLogTag(); private: - SourceHook::CVector m_hooks; +#if defined ENGINE_ORIGINAL + SourceHook::CallClass *m_EngineCC; +#endif }; extern StubPlugin g_StubPlugin;