From a5d25f5f20bb2a8b39fadb5723f3f5a3edc5419f Mon Sep 17 00:00:00 2001 From: kremsy Date: Thu, 27 Feb 2014 20:51:20 +0100 Subject: [PATCH] fixed mc loop --- application/core/ManiaControl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/core/ManiaControl.php b/application/core/ManiaControl.php index 58401a04..af0d4181 100644 --- a/application/core/ManiaControl.php +++ b/application/core/ManiaControl.php @@ -334,7 +334,7 @@ class ManiaControl implements CommandListener, TimerListener { // Yield for next tick $loopEnd = microtime(true); - $sleepTime = (int)(1000 - $loopEnd + $loopStart); + $sleepTime = (int)(1000 - ($loopEnd - $loopStart) * 1000000); if ($sleepTime > 0) { usleep($sleepTime); }