Add hack to not throw error on FEBC not found if not attempted to be found (nobug, r=asherkin).
This commit is contained in:
		
							parent
							
								
									3fffcdb931
								
							
						
					
					
						commit
						8a51bc6dbf
					
				@ -778,7 +778,15 @@ static cell_t FindEntityByClassname(IPluginContext *pContext, const cell_t *para
 | 
				
			|||||||
			if (!bProbablyNoFEBC)
 | 
								if (!bProbablyNoFEBC)
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				bProbablyNoFEBC = true;
 | 
									bProbablyNoFEBC = true;
 | 
				
			||||||
				g_pSM->LogError(myself, "%s, falling back to IServerTools method.", error);
 | 
					
 | 
				
			||||||
 | 
									// CreateBaseCall above abstracts all of the gamedata logic, but we need to know if the key was even found.
 | 
				
			||||||
 | 
									// We don't want to log an error if key isn't present (knowing falling back to native method), only throw
 | 
				
			||||||
 | 
									// error if signature/symbol was not found.
 | 
				
			||||||
 | 
									void *dummy;
 | 
				
			||||||
 | 
									if (g_pGameConf->GetMemSig("FindEntityByClassname", &dummy))
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										g_pSM->LogError(myself, "%s, falling back to IServerTools method.", error);
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			return NativeFindEntityByClassname(pContext, params);
 | 
								return NativeFindEntityByClassname(pContext, params);
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user