From: divverent Date: Sat, 27 Feb 2010 15:04:07 +0000 (+0000) Subject: fix two remaining uses of sys_usetimegettime X-Git-Tag: xonotic-v0.1.0preview~230^2~452 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=95ea7cd538122ca0fc56dec276c6900ef47ae56d;p=xonotic%2Fdarkplaces.git fix two remaining uses of sys_usetimegettime git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10017 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sys_shared.c b/sys_shared.c index a0e67f7b..c95612c4 100644 --- a/sys_shared.c +++ b/sys_shared.c @@ -233,7 +233,7 @@ void Sys_Init_Commands (void) } #endif #if HAVE_QUERYPERFORMANCECOUNTER - Cvar_RegisterVariable(&sys_usetimegettime); + Cvar_RegisterVariable(&sys_usequeryperformancecounter); #endif #if HAVE_CLOCKGETTIME Cvar_RegisterVariable(&sys_useclockgettime); @@ -273,7 +273,7 @@ double Sys_DoubleTime(void) { Con_Printf ("No hardware timer available\n"); // fall back to timeGetTime - Cvar_SetValueQuick(&sys_usetimegettime, true); + Cvar_SetValueQuick(&sys_usequeryperformancecounter, false); return Sys_DoubleTime(); } QueryPerformanceCounter (&PerformanceCount);