removed some unnecessary code in CL_TimeRefresh_f
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 12 Apr 2007 00:38:14 +0000 (00:38 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 12 Apr 2007 00:38:14 +0000 (00:38 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7081 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c

index 136749b..fcda008 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1782,11 +1782,9 @@ For program optimization
 static void CL_TimeRefresh_f (void)
 {
        int i;
-       float timestart, timedelta, oldangles[3];
+       float timestart, timedelta;
 
        r_refdef.extraupdate = false;
-       VectorCopy(cl.viewangles, oldangles);
-       VectorClear(cl.viewangles);
 
        timestart = Sys_DoubleTime();
        for (i = 0;i < 128;i++)
@@ -1796,7 +1794,6 @@ static void CL_TimeRefresh_f (void)
        }
        timedelta = Sys_DoubleTime() - timestart;
 
-       VectorCopy(oldangles, cl.viewangles);
        Con_Printf("%f seconds (%f fps)\n", timedelta, 128/timedelta);
 }