From d684686b47ba2d232c9d9f7a5345ce9669d1769a Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@d8a302eb-03bc-478d-80e4-98257eca68ef> Date: Sun, 27 Jul 2014 13:32:07 +0000 Subject: [PATCH] server tick git-svn-id: svn://elaine/murooma/trunk@108 d8a302eb-03bc-478d-80e4-98257eca68ef --- server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.cpp b/server.cpp index 3eda4309..b45f4a43 100644 --- a/server.cpp +++ b/server.cpp @@ -52,7 +52,7 @@ int main () { nextTick += WIRE_CHUNK_MS; long currentTick = getTickCount(); - if (nextTick - currentTick > 0) + if (nextTick > currentTick) { usleep((nextTick - currentTick) * 1000); }