metamod/mplugin.cpp
branchB-work
changeset 203 3d387d8b69ed
parent 196 023c288639f7
child 217 43ad553832f6
     1.1 --- a/metamod/mplugin.cpp	Mon Jan 30 20:05:14 2006 +0000
     1.2 +++ b/metamod/mplugin.cpp	Wed Feb 01 07:59:27 2006 +0000
     1.3 @@ -868,18 +868,16 @@
     1.4  	// give a plugin the idea that we'll call them, when in fact we won't
     1.5  	// (since we don't export them to the engine when the gamedll doesn't
     1.6  	// provide them).
     1.7 -	if(GameDLL.funcs.newapi_table) {
     1.8 -		iface_vers=NEW_DLL_FUNCTIONS_VERSION;
     1.9 -		GET_FUNC_TABLE_FROM_PLUGIN(pfnGetNewDLLFunctions, 
    1.10 -				"GetNewDLLFunctions", newapi_table, 
    1.11 -				NEW_DLL_FUNCTIONS_FN, NEW_DLL_FUNCTIONS,
    1.12 -				&iface_vers, iface_vers, NEW_DLL_FUNCTIONS_VERSION);
    1.13 -		iface_vers=NEW_DLL_FUNCTIONS_VERSION;
    1.14 -		GET_FUNC_TABLE_FROM_PLUGIN(pfnGetNewDLLFunctions_Post, 
    1.15 -				"GetNewDLLFunctions_Post", newapi_post_table, 
    1.16 -				NEW_DLL_FUNCTIONS_FN, NEW_DLL_FUNCTIONS,
    1.17 -				&iface_vers, iface_vers, NEW_DLL_FUNCTIONS_VERSION);
    1.18 -	}
    1.19 +	iface_vers=NEW_DLL_FUNCTIONS_VERSION;
    1.20 +	GET_FUNC_TABLE_FROM_PLUGIN(pfnGetNewDLLFunctions, 
    1.21 +			"GetNewDLLFunctions", newapi_table, 
    1.22 +			NEW_DLL_FUNCTIONS_FN, NEW_DLL_FUNCTIONS,
    1.23 +			&iface_vers, iface_vers, NEW_DLL_FUNCTIONS_VERSION);
    1.24 +	iface_vers=NEW_DLL_FUNCTIONS_VERSION;
    1.25 +	GET_FUNC_TABLE_FROM_PLUGIN(pfnGetNewDLLFunctions_Post, 
    1.26 +			"GetNewDLLFunctions_Post", newapi_post_table, 
    1.27 +			NEW_DLL_FUNCTIONS_FN, NEW_DLL_FUNCTIONS,
    1.28 +			&iface_vers, iface_vers, NEW_DLL_FUNCTIONS_VERSION);
    1.29  
    1.30  	// Look for API2 interface in plugin; preferred over API-1.
    1.31  	iface_vers=INTERFACE_VERSION;