1.1 --- a/sourcemm/sourcemm.cpp Wed Jun 28 18:33:00 2006 +0000
1.2 +++ b/sourcemm/sourcemm.cpp Thu Jul 13 06:08:08 2006 +0000
1.3 @@ -47,6 +47,7 @@
1.4 bool gParsedGameInfo = false;
1.5 SourceHook::List<GameDllInfo *> gamedll_list;
1.6 SourceHook::CallClass<IServerGameDLL> *dllExec;
1.7 +int g_GameDllVersion = 0;
1.8
1.9 void ClearGamedllList();
1.10
1.11 @@ -379,12 +380,12 @@
1.12 if (strncmp(iface, str, len) == 0)
1.13 {
1.14 //This is the interface we want! Right now we support versions 3 through 5.
1.15 - int version = atoi(&(iface[len]));
1.16 + g_GameDllVersion = atoi(&(iface[len]));
1.17 int sizeTooBig = 0; //rename this to sizeWrong in the future!
1.18 - if (version < MIN_GAMEDLL_VERSION || version > MAX_GAMEDLL_VERSION)
1.19 + if (g_GameDllVersion < MIN_GAMEDLL_VERSION || g_GameDllVersion > MAX_GAMEDLL_VERSION)
1.20 {
1.21 //maybe this will get used in the future
1.22 - sizeTooBig = version;
1.23 + sizeTooBig = g_GameDllVersion;
1.24 if (ret)
1.25 *ret = IFACE_FAILED;
1.26 }