1.1 --- a/metamod/engine_api.cpp Tue Aug 23 20:06:18 2005 +0000
1.2 +++ b/metamod/engine_api.cpp Thu Nov 24 00:27:02 2005 +0000
1.3 @@ -869,7 +869,7 @@
1.4 //Engine version didn't change when this API was added. Check if pointer is valid.
1.5 if (g_engfuncs.pfnQueryClientCvarValue &&
1.6 !IS_VALID_PTR((void *)g_engfuncs.pfnQueryClientCvarValue))
1.7 - g_engfuncs.pfnQueryClientCvarValue = 0;
1.8 + g_engfuncs.pfnQueryClientCvarValue = NULL;
1.9
1.10 g_Players.set_player_cvar_query(pEdict, cvarName);
1.11
1.12 @@ -877,6 +877,17 @@
1.13 RETURN_API_void();
1.14 }
1.15
1.16 +void mm_QueryClientCvarValue2(const edict_t *pEdict, const char *cvarName, int requestId)
1.17 +{
1.18 + //Engine version didn't change when this API was added. Check if the pointer is valid.
1.19 + if (g_engfuncs.pfnQueryClientCvarValue2 &&
1.20 + !IS_VALID_PTR((void * )g_engfuncs.pfnQueryClientCvarValue2))
1.21 + g_engfuncs.pfnQueryClientCvarValue2 = NULL;
1.22 +
1.23 + META_ENGINE_HANDLE_void(FN_QUERYCLIENTCVARVALUE2, pfnQueryClientCvarValue2, (pEdict, cvarName, requestId));
1.24 + RETURN_API_void();
1.25 +}
1.26 +
1.27 enginefuncs_t meta_engfuncs = {
1.28 mm_PrecacheModel, // pfnPrecacheModel()
1.29 mm_PrecacheSound, // pfnPrecacheSound()
1.30 @@ -1083,6 +1094,9 @@
1.31
1.32 //Added 2005/08/11 (no SDK update)
1.33 mm_QueryClientCvarValue, // pfnQueryClientCvarValue()
1.34 +
1.35 + //Added 2005/11/22 (no SDK update)
1.36 + mm_QueryClientCvarValue2, // pfnQueryClientCvarValue2()
1.37 };
1.38
1.39