sample_mm/engine_wrappers.h
changeset 678 c676a9ce0320
parent 637 b66489d8aedc
child 726 97c3e79dc80f
     1.1 --- a/sample_mm/engine_wrappers.h	Mon Nov 02 11:08:56 2009 -0600
     1.2 +++ b/sample_mm/engine_wrappers.h	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  #ifndef _INCLUDE_SOURCE_ENGINE_WRAPPERS_
    1.19 @@ -26,17 +24,17 @@
    1.20  #error "Metamod:Source 1.6 API is not supported on the old engine."
    1.21  #endif
    1.22  
    1.23 +#define ENGINE_CALL(func) SH_CALL(engine, &IVEngineServer::func)
    1.24 +
    1.25  /**
    1.26 - * MM:S 1.4.x needs older API calls.
    1.27 + * Wrap some API calls for legacy MM:S.
    1.28   */
    1.29  #if !defined METAMOD_PLAPI_VERSION
    1.30  #define GetEngineFactory engineFactory
    1.31  #define GetServerFactory serverFactory
    1.32  #define MM_Format snprintf
    1.33  #define	GetCGlobals	pGlobals
    1.34 -#define ENGINE_CALL(func) SH_CALL(m_EngineCC, func)
    1.35  #else
    1.36 -#define ENGINE_CALL(func) SH_CALL(engine, func)
    1.37  #define MM_Format g_SMAPI->Format
    1.38  #endif
    1.39