X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmainloop.cpp;h=f9a54f18df8c5ace1259f0cab110fa40af03d175;hb=d84d73b701cc7fa2bd74f3490b9be1bf8b6f705a;hp=3f2f4c0e2d428471acb2b87f4a78d6ab5e739cc8;hpb=c62711567861587107d124642db29e2674ee6533;p=supertux.git diff --git a/src/mainloop.cpp b/src/mainloop.cpp index 3f2f4c0e2..f9a54f18d 100644 --- a/src/mainloop.cpp +++ b/src/mainloop.cpp @@ -35,6 +35,7 @@ #include "screen_fade.hpp" #include "timer.hpp" #include "player_status.hpp" +#include "random_generator.hpp" // the engine will be run with a logical framerate of 64fps. // We chose 64fps here because it is a power of 2, so 1/64 gives an "even" @@ -122,7 +123,7 @@ MainLoop::run() { DrawingContext context; - unsigned int frame_count; + unsigned int frame_count = 0; float fps_fps = 0; Uint32 fps_ticks = SDL_GetTicks(); Uint32 fps_nextframe_ticks = SDL_GetTicks(); @@ -237,6 +238,8 @@ MainLoop::run() } sound_manager->update(); + + //log_info << "== periodic rand() = " << systemRandom.rand() << std::endl; } }