Entity Outputs now fail silently if the mod is not supported.

--HG--
branch : sourcemod-1.0.x
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.0.x%402281
This commit is contained in:
Matt Woodrow 2008-06-26 08:07:33 +00:00
parent 93d0362a70
commit a17b0abfe4

View File

@ -76,7 +76,12 @@ bool EntityOutputManager::IsEnabled()
bool EntityOutputManager::CreateFireEventDetour()
{
if (!g_pGameConf->GetMemSig("FireOutput", &info_address) || !info_address)
if (!g_pGameConf->GetMemSig("FireOutput", &info_address))
{
return false;
}
if (!info_address)
{
g_pSM->LogError(myself, "Could not locate FireOutput - Disabling Entity Outputs");
return false;
@ -84,7 +89,6 @@ bool EntityOutputManager::CreateFireEventDetour()
if (!g_pGameConf->GetOffset("FireOutputBackup", (int *)&(info_restore.bytes)))
{
g_pSM->LogError(myself, "Could not locate FireOutputBackup - Disabling Entity Outputs");
return false;
}