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

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402282
This commit is contained in:
Matt Woodrow 2008-06-26 08:07:47 +00:00
parent 81e40c32c8
commit 42359a243a

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;
}