Use newer MM:S api for Ep1/Original engine. (#548)
* Use newer MM:S api for Ep1/Original engine. * Remove doubled FILENAME_1_6_EP1 define.
This commit is contained in:
committed by
GitHub
parent
d9312799c3
commit
ad3588d0aa
@@ -18,12 +18,6 @@
|
||||
|
||||
#include "takedamageinfohack.h"
|
||||
|
||||
#ifndef METAMOD_PLAPI_VERSION
|
||||
#define GetCGlobals pGlobals
|
||||
#define GetEngineFactory engineFactory
|
||||
#define GetServerFactory serverFactory
|
||||
#endif
|
||||
|
||||
#if SOURCE_ENGINE >= SE_CSS && SOURCE_ENGINE != SE_LEFT4DEAD
|
||||
#define GETMAXHEALTH_IS_VIRTUAL
|
||||
#endif
|
||||
|
||||
@@ -357,11 +357,7 @@ void SDKTools::NotifyInterfaceDrop(SMInterface *pInterface)
|
||||
|
||||
bool SDKTools::RegisterConCommandBase(ConCommandBase *pVar)
|
||||
{
|
||||
#if defined METAMOD_PLAPI_VERSION
|
||||
return g_SMAPI->RegisterConCommandBase(g_PLAPI, pVar);
|
||||
#else
|
||||
return g_SMAPI->RegisterConCmdBase(g_PLAPI, pVar);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool SDKTools::LevelInit(char const *pMapName, char const *pMapEntities, char const *pOldLevel, char const *pLandmarkName, bool loadGame, bool background)
|
||||
|
||||
Reference in New Issue
Block a user