diff options
Diffstat (limited to 'src/GameDraw.cpp')
-rw-r--r-- | src/GameDraw.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/GameDraw.cpp b/src/GameDraw.cpp index 9848232..a3d9fe7 100644 --- a/src/GameDraw.cpp +++ b/src/GameDraw.cpp @@ -39,7 +39,7 @@ extern float sinefluctprog; extern int environment; extern Decals decals; -int Game::DrawGLScene(void) +void Game::DrawGLScene(void) { //Main menu if (mainmenu == 1) { @@ -1505,7 +1505,7 @@ int Game::DrawGLScene(void) if(debug){ - sprintf (string, "The framespersecond is %d out of maximum %d.",(int)framespersecond+1,maxfps); + sprintf (string, "FPS: %.0f", 1.0f / multiplier); text.glPrint(10,30,string,0,.8,screenwidth,screenheight); @@ -1530,14 +1530,5 @@ int Game::DrawGLScene(void) text.glPrint(10,80,string,0,.8,screenwidth,screenheight); } - - /* - sprintf (string, ""); - - text.glPrint(10,80,string,0,.8,screenwidth,screenheight); - */ - } - - return 1; } |