diff options
| author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-06 12:36:14 +0100 |
|---|---|---|
| committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-06 12:36:14 +0100 |
| commit | 57701ac70f2b81e11eedb4c01f680e46c1abadb2 (patch) | |
| tree | f75159985b58c87a39fe7d602a2e94acdbb0ccbd /src/game-server/main-game.cpp | |
| parent | 8404033af0218ccd0221bf6ae9c0939bec86c4c9 (diff) | |
Get rid of the server tick magic number.
Reviewed-by: CodyMartin.
Diffstat (limited to 'src/game-server/main-game.cpp')
| -rw-r--r-- | src/game-server/main-game.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 */ |
