gameshim/stripper_mm.cpp
changeset 28 dc8f2d4b515d
parent 27 f40bd26e2b90
child 34 9c6a40d328e9
     1.1 --- a/gameshim/stripper_mm.cpp	Sun Jun 13 19:04:47 2010 -0700
     1.2 +++ b/gameshim/stripper_mm.cpp	Fri Apr 15 01:07:45 2011 -0700
     1.3 @@ -18,6 +18,7 @@
     1.4  #include "stripper_mm.h"
     1.5  #include "intercom.h"
     1.6  #include "icommandline.h"
     1.7 +#include <stripper_version_auto.h>
     1.8  
     1.9  using namespace SourceHook;
    1.10  
    1.11 @@ -45,7 +46,7 @@
    1.12  GetICVar()
    1.13  {
    1.14  #if defined METAMOD_PLAPI_VERSION
    1.15 -#if SOURCE_ENGINE==SE_ORANGEBOX || SOURCE_ENGINE==SE_LEFT4DEAD || SOURCE_ENGINE==SE_LEFT4DEAD2
    1.16 +#if SOURCE_ENGINE==SE_ORANGEBOX || SOURCE_ENGINE==SE_LEFT4DEAD || SOURCE_ENGINE==SE_LEFT4DEAD2 || SOURCE_ENGINE==SE_ORANGEBOXVALVE
    1.17      return (ICvar *)((g_SMAPI->GetEngineFactory())(CVAR_INTERFACE_VERSION, NULL));
    1.18  #else
    1.19      return (ICvar *)((g_SMAPI->GetEngineFactory())(VENGINE_CVAR_INTERFACE_VERSION, NULL));
    1.20 @@ -204,7 +205,7 @@
    1.21      SH_ADD_HOOK_STATICFUNC(IServerGameDLL, LevelInit, server, LevelInit_handler, false);
    1.22      SH_ADD_HOOK_STATICFUNC(IServerGameClients, SetCommandClient, clients, SetCommandClient, false);
    1.23  
    1.24 -#if SOURCE_ENGINE==SE_ORANGEBOX || SOURCE_ENGINE==SE_LEFT4DEAD || SOURCE_ENGINE==SE_LEFT4DEAD2
    1.25 +#if SOURCE_ENGINE==SE_ORANGEBOX || SOURCE_ENGINE==SE_LEFT4DEAD || SOURCE_ENGINE==SE_LEFT4DEAD2 || SOURCE_ENGINE==SE_ORANGEBOXVALVE
    1.26      g_pCVar = GetICVar();
    1.27      ConVar_Register(0, this);
    1.28  #else
    1.29 @@ -291,7 +292,7 @@
    1.30  const char*
    1.31  StripperPlugin::GetVersion()
    1.32  {
    1.33 -    return STRIPPER_VERSION;
    1.34 +    return STRIPPER_FULL_VERSION;
    1.35  }
    1.36  
    1.37  const char*
    1.38 @@ -320,7 +321,7 @@
    1.39      last_command_client = client;
    1.40  }
    1.41  
    1.42 -ConVar stripper_version("stripper_version", STRIPPER_VERSION, FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY, "Stripper Version");
    1.43 +ConVar stripper_version("stripper_version", STRIPPER_FULL_VERSION, FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY, "Stripper Version");
    1.44  
    1.45  CON_COMMAND(stripper_dump, "Dumps the map entity list to a file")
    1.46  {