From 57701ac70f2b81e11eedb4c01f680e46c1abadb2 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 6 Jan 2011 12:36:14 +0100 Subject: Get rid of the server tick magic number. Reviewed-by: CodyMartin. --- src/game-server/main-game.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/game-server/main-game.cpp') diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp index d62c92a..182e459 100644 --- a/src/game-server/main-game.cpp +++ b/src/game-server/main-game.cpp @@ -77,8 +77,9 @@ using utils::Logger; static int const WORLD_TICK_SKIP = 2; /** tolerance for lagging behind in world calculation) **/ -utils::Timer worldTimer(100, false); /**< Timer for world tics set to 100 ms */ -int worldTime = 0; /**< Current world time in 100ms ticks */ +/** Timer for world ticks */ +utils::Timer worldTimer(WORLD_TICK_MS, false); +int worldTime = 0; /**< Current world time in ticks */ bool running = true; /**< Determines if server keeps running */ utils::StringFilter *stringFilter; /**< Slang's Filter */ -- cgit