More internal code cleanup

This commit is contained in:
Alex Szpakowski
2013-03-31 19:02:27 -03:00
parent eef4eed636
commit d5aa807747
19 changed files with 105 additions and 124 deletions
+4 -2
View File
@@ -38,8 +38,8 @@ namespace sdl
{
Timer::Timer()
: currTime(getMicroTime())
, prevFpsUpdate(currTime)
: currTime(0)
, prevFpsUpdate(0)
, fps(0)
, averageDelta(0)
, fpsUpdateFrequency(1)
@@ -49,6 +49,8 @@ Timer::Timer()
// Init the SDL timer system.
if (SDL_InitSubSystem(SDL_INIT_TIMER) < 0)
throw Exception(SDL_GetError());
prevFpsUpdate = currTime = getMicroTime();
}
Timer::~Timer()