From 70a616a7ed3fb7cf58cdc1939ce49301e96fc0ad Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 6 Sep 2007 20:43:13 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1298 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/src/main.cpp b/source/src/main.cpp index f138226c..08afa535 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -206,6 +206,9 @@ void keyrepeat(bool on) VARF(gamespeed, 10, 100, 1000, if(multiplayer()) gamespeed = 100); +VARP(clockerror, 990000, 1000000, 1010000); +VARP(clockfix, 0, 0, 1); + int main(int argc, char **argv) { bool dedicated = false; @@ -428,6 +431,8 @@ int main(int argc, char **argv) static int curmillis = 0, frames = 0; static float fps = 10.0f; int millis = SDL_GetTicks(); + if(clockfix) millis = int(millis*(double(clockerror)/1000000)); + if(millis