Entity Outputs now fail silently if the mod is not supported.
authorMatt Woodrow <pred@alliedmods.net>
Thu Jun 26 08:07:47 2008 +0000 (2008-06-26)
changeset 21222c31629b07f4
parent 2121 8b9abb66c167
child 2123 1f9f3580bb9c
Entity Outputs now fail silently if the mod is not supported.
extensions/sdktools/output.cpp
     1.1 --- a/extensions/sdktools/output.cpp	Sat Jun 21 09:28:42 2008 +0000
     1.2 +++ b/extensions/sdktools/output.cpp	Thu Jun 26 08:07:47 2008 +0000
     1.3 @@ -76,7 +76,12 @@
     1.4  
     1.5  bool EntityOutputManager::CreateFireEventDetour()
     1.6  {
     1.7 -	if (!g_pGameConf->GetMemSig("FireOutput", &info_address) || !info_address)
     1.8 +	if (!g_pGameConf->GetMemSig("FireOutput", &info_address))
     1.9 +	{
    1.10 +		return false;
    1.11 +	}
    1.12 +
    1.13 +	if (!info_address)
    1.14  	{
    1.15  		g_pSM->LogError(myself, "Could not locate FireOutput - Disabling Entity Outputs");
    1.16  		return false;
    1.17 @@ -84,7 +89,6 @@
    1.18  
    1.19  	if (!g_pGameConf->GetOffset("FireOutputBackup", (int *)&(info_restore.bytes)))
    1.20  	{
    1.21 -		g_pSM->LogError(myself, "Could not locate FireOutputBackup - Disabling Entity Outputs");
    1.22  		return false;
    1.23  	}
    1.24