mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-20 13:54:14 +01:00
Fixed up some cruft.
This commit is contained in:
parent
2d227710d2
commit
54feb19d21
@ -227,8 +227,6 @@ CreateInterface(const char *iface, int *ret)
|
||||
|
||||
if (ptr == NULL)
|
||||
vsp_version = 0;
|
||||
|
||||
return ptr;
|
||||
}
|
||||
|
||||
if (ret)
|
||||
|
@ -115,23 +115,6 @@ void VSPListener::ServerActivate(edict_t *pEdictList, int edictCount, int client
|
||||
|
||||
void VSPListener::Unload()
|
||||
{
|
||||
#if 0
|
||||
if (g_bIsTryingToUnload)
|
||||
{
|
||||
Error("Metamod:Source cannot be unloaded from VSP mode. Use \"meta unload\" to unload specific plugins.\n");
|
||||
return;
|
||||
}
|
||||
if (IsRootLoadMethod())
|
||||
{
|
||||
if (g_plugin_unload != NULL)
|
||||
{
|
||||
SH_REMOVE_HOOK_STATICFUNC(ConCommand, Dispatch, g_plugin_unload, InterceptPluginUnloads, false);
|
||||
SH_REMOVE_HOOK_STATICFUNC(ConCommand, Dispatch, g_plugin_unload, InterceptPluginUnloads_Post, true);
|
||||
g_plugin_unload = NULL;
|
||||
}
|
||||
UnloadMetamod();
|
||||
}
|
||||
#endif
|
||||
m_bLoaded = false;
|
||||
m_bLoadable = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user