From 42359a243aacc6b9ee6e7a0602b6cf3b2d25beaa Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Thu, 26 Jun 2008 08:07:47 +0000 Subject: [PATCH] Entity Outputs now fail silently if the mod is not supported. --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402282 --- extensions/sdktools/output.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/extensions/sdktools/output.cpp b/extensions/sdktools/output.cpp index 70e22b54..bc925f4c 100644 --- a/extensions/sdktools/output.cpp +++ b/extensions/sdktools/output.cpp @@ -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; }