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:
parent
8e6f8ed29b
commit
bcc08f184b
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -117,6 +117,7 @@ extern PluginId g_PLID;
|
||||
extern int g_GameDllVersion;
|
||||
|
||||
extern bool bGameInit;
|
||||
extern bool g_bLevelChanged;
|
||||
|
||||
void UnloadMetamod(bool shutting_down);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user