Fixed problem on OBV where alternately loaded plugins (CreateInterface_MMS) could be incorrectly told they were on the OB engine (bug 4491, r=dvander).
authorScott Ehlert <ds@alliedmods.net>
Thu Jul 01 02:43:22 2010 -0500 (2010-07-01)
changeset 72278f730f91439
parent 721 d799abb69fa7
child 723 d78022327579
Fixed problem on OBV where alternately loaded plugins (CreateInterface_MMS) could be incorrectly told they were on the OB engine (bug 4491, r=dvander).

This only happened when there was more than one plugin that loaded this way. And the first plugin to load had to fail on OBV first so that OB could be tried. It was being permanently set to OB for future plugin loads and this caused problems.
core/metamod_plugins.cpp
     1.1 --- a/core/metamod_plugins.cpp	Wed Jun 30 13:57:05 2010 -0500
     1.2 +++ b/core/metamod_plugins.cpp	Thu Jul 01 02:43:22 2010 -0500
     1.3 @@ -465,6 +465,7 @@
     1.4  				{
     1.5  					GlobVersionInfo.source_engine = SOURCE_ENGINE_ORANGEBOX;
     1.6  					pl->m_API = fnLoad(&GlobVersionInfo, &info);
     1.7 +					GlobVersionInfo.source_engine = SOURCE_ENGINE_ORANGEBOXVALVE;
     1.8  				}
     1.9  #endif
    1.10  				pl->m_UnloadFn = (METAMOD_FN_UNLOAD)dlsym(pl->m_Lib, "UnloadInterface_MMS");