diff --git a/game_offsets.h b/game_offsets.h index 8ea0379..92f6805 100644 --- a/game_offsets.h +++ b/game_offsets.h @@ -1,7 +1,7 @@ #ifndef _INCLUDE_GAME_OFFSETS_ #define _INCLUDE_GAME_OFFSETS_ -#ifdef WIN32 +#if SH_SYS == SH_SYS_WIN32 int maxplayers_offs = 138; // m_nMaxClientsLimit (in CGameServer::SetMaxClients) #if SOURCE_ENGINE == SE_LEFT4DEAD #include "l4d1_offsets_win32.h" diff --git a/l4dtoolz_mm.cpp b/l4dtoolz_mm.cpp index f53a9b0..1987eb1 100644 --- a/l4dtoolz_mm.cpp +++ b/l4dtoolz_mm.cpp @@ -100,7 +100,7 @@ bool l4dtoolz::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool GET_V_IFACE_CURRENT(GetEngineFactory, g_pCVar, ICvar, CVAR_INTERFACE_VERSION); void* handle = NULL; -#ifdef PLATFORM_WINDOWS +#if SH_SYS == SH_SYS_WIN32 if (!(handle=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClient))) { Warning("Failed to get address 'IVEngineServer::CreateFakeClient'\n"); } else {