From 23e4a3e8561496ca97c5e420b4c133597ea7538c Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 16 Nov 2006 10:31:16 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@688 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 1 - source/src/main.cpp | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index 6c7b3c90..a09dd34e 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -586,7 +586,6 @@ void startmap(char *name) // called just after a map load setvar("fogcolour", 0x8099B3); showscores(false); intermission = false; - framesinmap = 0; conoutf("game mode is \"%s\"", modestr(gamemode)); clearbounceents(); }; diff --git a/source/src/main.cpp b/source/src/main.cpp index e59ea267..18efd11c 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -202,8 +202,6 @@ void keyrepeat(bool on) VARF(gamespeed, 10, 100, 1000, if(multiplayer()) gamespeed = 100); -int framesinmap = 0; - int main(int argc, char **argv) { bool dedicated = false; @@ -353,13 +351,7 @@ int main(int argc, char **argv) computeraytable(camera1->o.x, camera1->o.y); SDL_GL_SwapBuffers(); extern void updatevol(); updatevol(); - if(framesinmap++<5) // cheap hack to get rid of initial sparklies, even when triple buffering etc. - { - camera1->yaw += 5; - gl_drawframe(scr_w, scr_h, 1.0f, fps); - camera1->yaw -= 5; - }; - gl_drawframe(scr_w, scr_h, fpshighfps ? fps/highfps : 1.0f), fps); + if(frames>3) gl_drawframe(scr_w, scr_h, fpshighfps ? fps/highfps : 1.0f), fps); //SDL_Delay(100); SDL_Event event; int lasttype = 0, lastbut = 0;