From e90c82eac2b260e09ceed71d069443d15c0b58e6 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 7 Sep 2007 00:04:28 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1300 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/src/main.cpp b/source/src/main.cpp index 34727326..f42bcc12 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -452,12 +452,15 @@ int main(int argc, char **argv) serverslice(0); frames++; - fps = (1000.0f/elapsed+fps*10)/11; computeraytable(camera1->o.x, camera1->o.y); if(frames>4) SDL_GL_SwapBuffers(); extern void updatevol(); updatevol(); - if(frames>3) gl_drawframe(screen->w, screen->h, fpshighfps ? fps/highfps : 1.0f), fps); + if(frames>3) + { + fps = (1000.0f/elapsed+fps*10)/11; + gl_drawframe(screen->w, screen->h, fpshighfps ? fps/highfps : 1.0f), fps); + } //SDL_Delay(100); SDL_Event event; int lasttype = 0, lastbut = 0;