diff options
author | Stijn Buys <ingar@osirion.org> | 2011-05-09 20:22:34 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-05-09 20:22:34 +0000 |
commit | bb0f860989f84b901f80017ae0139a3fc0446dc1 (patch) | |
tree | 3b9ef3a5164326d2ad4b531904603ea2afdb40e3 /src/client/client.cc | |
parent | 3de78ec1bef2a0274a719ea229709523650ade40 (diff) |
Refactored the sys::localtime routines.
Diffstat (limited to 'src/client/client.cc')
-rw-r--r-- | src/client/client.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/client.cc b/src/client/client.cc index 5b72146..d761e6e 100644 --- a/src/client/client.cc +++ b/src/client/client.cc @@ -196,13 +196,13 @@ void Client::run() } if (cl_framerate->value()) { - client_frame_lenght = (Uint32) roundf(1000.0f / cl_framerate->value()); + client_frame_lenght = (Uint32) floorf(1000.0f / cl_framerate->value()); } else { client_frame_lenght = 0; } // only advance per microsecond frame - Uint32 d = client_current_timestamp - client_previous_timestamp; + const Uint32 d = client_current_timestamp - client_previous_timestamp; if ((d > 0)) { if (d >= client_frame_lenght) { frame(client_current_timestamp); |