From adf4aa2f8d6b7a85fc6464199be623b53463f9fd Mon Sep 17 00:00:00 2001 From: Scott Wichser Date: Wed, 30 Jan 2019 09:59:55 -0600 Subject: [PATCH] Run a pass of astyle. --- src/bzflag/HUDRenderer.cxx | 9 ++------- src/platform/SDLMedia.cxx | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/bzflag/HUDRenderer.cxx b/src/bzflag/HUDRenderer.cxx index c9a47a1866..4230221ac1 100644 --- a/src/bzflag/HUDRenderer.cxx +++ b/src/bzflag/HUDRenderer.cxx @@ -357,14 +357,13 @@ void HUDRenderer::setFPS(float _fps) void HUDRenderer::setDrawTime(float drawTimeInseconds) { const int maxCnt = 10000; - if (drawTimeInseconds < 0) { + if (drawTimeInseconds < 0) + { drawTime = drawTimeInseconds; return; } if (drawTime < 0.) - { drawTimeCnt = maxCnt; - } if (drawTimeCnt == maxCnt) { minDrawTime = drawTimeInseconds; @@ -373,13 +372,9 @@ void HUDRenderer::setDrawTime(float drawTimeInseconds) drawTimeCnt = 0; } else if (drawTime < minDrawTime) - { minDrawTime = drawTime; - } else if (drawTime > maxDrawTime) - { maxDrawTime = drawTime; - } drawTimeTmp += drawTimeInseconds; drawTimeCnt++; drawTime = drawTimeTmp / drawTimeCnt; diff --git a/src/platform/SDLMedia.cxx b/src/platform/SDLMedia.cxx index 54f99b2a90..7e1d32f9d3 100644 --- a/src/platform/SDLMedia.cxx +++ b/src/platform/SDLMedia.cxx @@ -96,7 +96,7 @@ double SDLMedia::stopwatch(bool start) if (currentTick >= stopwatchTime) #ifdef HAVE_SDL2 return (double) (currentTick - stopwatchTime) / - SDL_GetPerformanceFrequency(); // sec + SDL_GetPerformanceFrequency(); // sec #else return (double) (currentTick - stopwatchTime) * 0.001; // sec #endif