metamod/dllapi.cpp
branchB-work
changeset 184 5b2e0192690d
parent 171 b29e03d3061b
child 195 c7737ac9af4f
     1.1 --- a/metamod/dllapi.cpp	Tue Dec 20 16:06:16 2005 +0000
     1.2 +++ b/metamod/dllapi.cpp	Tue Dec 20 16:24:05 2005 +0000
     1.3 @@ -479,6 +479,11 @@
     1.4  C_DLLEXPORT int GetNewDLLFunctions(NEW_DLL_FUNCTIONS *pNewFunctionTable, int *interfaceVersion) 
     1.5  {
     1.6  	META_DEBUG(6, ("called: GetNewDLLFunctions; version=%d", *interfaceVersion));
     1.7 +	// Don't provide these functions to engine if gamedll doesn't provide
     1.8 +	// them.  Otherwise, we're in the position of having to provide answers
     1.9 +	// we can't necessarily provide (for instance, ShouldCollide())...
    1.10 +	if(!GameDLL.funcs.newapi_table)
    1.11 +		return(FALSE);
    1.12  
    1.13  	if(!pNewFunctionTable) {
    1.14  		META_ERROR("GetNewDLLFunctions called with null pNewFunctionTable");