diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-11-06 17:29:47 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-11-07 18:54:37 +0100 |
commit | 80f0899c16931b41b51b062a3d020781c033bc87 (patch) | |
tree | c761bc1539c03a75a2aea7cf5a08701f4c13803e /src/game-server/main-game.cpp | |
parent | e0fc91bd6a2830127b116f6a37f024e17ac594e7 (diff) | |
download | manaserv-80f0899c16931b41b51b062a3d020781c033bc87.tar.gz manaserv-80f0899c16931b41b51b062a3d020781c033bc87.tar.bz2 manaserv-80f0899c16931b41b51b062a3d020781c033bc87.tar.xz manaserv-80f0899c16931b41b51b062a3d020781c033bc87.zip |
Small cleanups in utils::Timer
* Not nice to pass boolean parameter to constructor for preventing the
timer from running on creation. Just call 'start' on it explicitly.
* getTimeInMillisec could be made static.
Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/game-server/main-game.cpp')
-rw-r--r-- | src/game-server/main-game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp index e7a06c84..62da4f9c 100644 --- a/src/game-server/main-game.cpp +++ b/src/game-server/main-game.cpp @@ -78,7 +78,7 @@ using utils::Logger; static int const WORLD_TICK_SKIP = 2; /** tolerance for lagging behind in world calculation) **/ /** Timer for world ticks */ -utils::Timer worldTimer(WORLD_TICK_MS, false); +utils::Timer worldTimer(WORLD_TICK_MS); int worldTime = 0; /**< Current world time in ticks */ bool running = true; /**< Determines if server keeps running */ |