diff -r e3b5d251a9dd -r baece18f381f sourcemm/sourcemm.cpp --- a/sourcemm/sourcemm.cpp Wed Jun 28 18:33:00 2006 +0000 +++ b/sourcemm/sourcemm.cpp Thu Jul 13 06:08:08 2006 +0000 @@ -47,6 +47,7 @@ bool gParsedGameInfo = false; SourceHook::List gamedll_list; SourceHook::CallClass *dllExec; +int g_GameDllVersion = 0; void ClearGamedllList(); @@ -379,12 +380,12 @@ if (strncmp(iface, str, len) == 0) { //This is the interface we want! Right now we support versions 3 through 5. - int version = atoi(&(iface[len])); + g_GameDllVersion = atoi(&(iface[len])); int sizeTooBig = 0; //rename this to sizeWrong in the future! - if (version < MIN_GAMEDLL_VERSION || version > MAX_GAMEDLL_VERSION) + if (g_GameDllVersion < MIN_GAMEDLL_VERSION || g_GameDllVersion > MAX_GAMEDLL_VERSION) { //maybe this will get used in the future - sizeTooBig = version; + sizeTooBig = g_GameDllVersion; if (ret) *ret = IFACE_FAILED; }