From bb9ba4da28a229d86cf7298aac9135ee8c93bc74 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 24 Aug 2011 20:04:15 +0200 Subject: [PATCH] Remove unused FPS display code. --- code/game.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/code/game.cpp b/code/game.cpp index 2b2512e..020dee9 100644 --- a/code/game.cpp +++ b/code/game.cpp @@ -81,8 +81,6 @@ void newGame() int mainGameLoop() { - Uint32 then, now, frames; - resetLists(); setMission(currentGame.area); @@ -99,7 +97,6 @@ int mainGameLoop() engine.ssy = 0; engine.done = 0; - frames = 0; engine.counter = (SDL_GetTicks() + 1000); engine.counter2 = (SDL_GetTicks() + 1000); @@ -128,8 +125,6 @@ int mainGameLoop() } } - then = SDL_GetTicks(); - graphics.drawBackGround(); graphics.flushBuffer(); @@ -141,8 +136,6 @@ int mainGameLoop() while (engine.done != 1) { - ++frames; - graphics.updateScreen(); if ((allMissionsCompleted()) && (engine.missionCompleteTimer == 0)) @@ -236,8 +229,6 @@ int mainGameLoop() while (engine.paused) { engine.done = checkPauseRequest(); - then = SDL_GetTicks(); - frames = 0; graphics.updateScreen(); } @@ -280,12 +271,6 @@ int mainGameLoop() graphics.flushBuffer(); - now = SDL_GetTicks(); - if ( now > then ) - { - //printf("Mission %d: %2.2f frames per second\n", currentGame.area, ((double)frames*1000)/(now-then)); - } - if ((player.shield > 0) && (!missionFailed())) { if (currentGame.area < 26)