1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-26 19:54:14 +01:00

"meta" now only works after a mapchange if mm is late loaded

--HG--
branch : sourcemm-1.4.3
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/branches/sourcemm-1.4.3%40594
This commit is contained in:
David Anderson 2007-12-14 00:48:28 +00:00
parent 8e6f8ed29b
commit bcc08f184b
3 changed files with 5 additions and 1 deletions

View File

@ -131,7 +131,7 @@ CON_COMMAND(meta, "Metamod:Source Menu")
int args = e->Cmd_Argc();
if (g_VspListener.IsRootLoadMethod() && !bGameInit)
if (g_VspListener.IsRootLoadMethod() && !g_bLevelChanged)
{
CONMSG("WARNING: You must change the map to activate Metamod:Source.\n");
return;

View File

@ -65,6 +65,7 @@ const char VSPIFACE_001[] = "ISERVERPLUGINCALLBACKS001";
const char VSPIFACE_002[] = "ISERVERPLUGINCALLBACKS002";
const char GAMEINFO_PATH[] = "|gameinfo_path|";
IFileSystem *baseFs = NULL;
bool g_bLevelChanged = false;
void ClearGamedllList();
@ -936,6 +937,8 @@ void LevelShutdown_handler(void)
bInFirstLevel = false;
}
g_bLevelChanged = true;
ITER_EVENT(OnLevelShutdown, ());
RETURN_META(MRES_IGNORED);

View File

@ -117,6 +117,7 @@ extern PluginId g_PLID;
extern int g_GameDllVersion;
extern bool bGameInit;
extern bool g_bLevelChanged;
void UnloadMetamod(bool shutting_down);