fix for unitialized variable warnings
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Feb 2001 08:24:04 +0000 (08:24 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Feb 2001 08:24:04 +0000 (08:24 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@148 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 907822e..92fa54c 100644 (file)
@@ -706,7 +706,9 @@ void GL_BlendView()
                temptime = currtime;\
                currtime = Sys_FloatTime();\
                VAR = (int) ((currtime - temptime) * 1000000.0);\
-       }
+       }\
+       else\
+               VAR = 0;
 
 /*
 ================
@@ -740,6 +742,8 @@ void R_RenderView (void)
                starttime = currtime = Sys_FloatTime();
 //             Con_Printf("render time: ");
        }
+       else
+               starttime = currtime = 0;
        R_Clear();
        skypolyclear();
        wallpolyclear();