]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix two remaining uses of sys_usetimegettime
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 27 Feb 2010 15:04:07 +0000 (15:04 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 27 Feb 2010 15:04:07 +0000 (15:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10017 d7cf8633-e32d-0410-b094-e92efae38249

sys_shared.c

index a0e67f7bf41370e37aa498c7583dc35cf86b04d7..c95612c4d5e4f462aecf675da6ea28abeac7fcab 100644 (file)
@@ -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);