Rename QueryHookMode to ClientCvarQueryMode.

This commit is contained in:
David Anderson
2015-09-09 18:40:01 -07:00
parent fa93426f6a
commit b63bfdc72a
3 changed files with 13 additions and 13 deletions
+4 -4
View File
@@ -639,20 +639,20 @@ void CoreProviderImpl::UnloadMMSPlugin(int id)
bool CoreProviderImpl::IsClientConVarQueryingSupported()
{
return hooks_.GetQueryHookMode() != QueryHookMode::Unavailable;
return hooks_.GetClientCvarQueryMode() != ClientCvarQueryMode::Unavailable;
}
int CoreProviderImpl::QueryClientConVar(int client, const char *cvar)
{
#if SOURCE_ENGINE != SE_DARKMESSIAH
switch (hooks_.GetQueryHookMode()) {
case QueryHookMode::DLL:
switch (hooks_.GetClientCvarQueryMode()) {
case ClientCvarQueryMode::DLL:
# if SOURCE_ENGINE == SE_DOTA
return ::engine->StartQueryCvarValue(CEntityIndex(client), cvar);
# else
return ::engine->StartQueryCvarValue(PEntityOfEntIndex(client), cvar);
# endif
case QueryHookMode::VSP:
case ClientCvarQueryMode::VSP:
# if SOURCE_ENGINE != SE_DOTA
return serverpluginhelpers->StartQueryCvarValue(PEntityOfEntIndex(client), cvar);
# endif