summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-14 22:36:34 +0200
committermadmaxoft <github@xoft.cz>2013-08-14 22:36:34 +0200
commitf93d13c41993ba86cad8303fe0b07ec2098dac39 (patch)
tree6387ffde2f01c3955fdeff4ef7a3cce67de02acb
parentcEvent can now wait for the event with a specified timeout. (diff)
downloadcuberite-f93d13c41993ba86cad8303fe0b07ec2098dac39.tar
cuberite-f93d13c41993ba86cad8303fe0b07ec2098dac39.tar.gz
cuberite-f93d13c41993ba86cad8303fe0b07ec2098dac39.tar.bz2
cuberite-f93d13c41993ba86cad8303fe0b07ec2098dac39.tar.lz
cuberite-f93d13c41993ba86cad8303fe0b07ec2098dac39.tar.xz
cuberite-f93d13c41993ba86cad8303fe0b07ec2098dac39.tar.zst
cuberite-f93d13c41993ba86cad8303fe0b07ec2098dac39.zip
Diffstat (limited to '')
-rw-r--r--source/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 5c3a24177..4cc130811 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -211,7 +211,7 @@ void cWorld::cTickThread::Execute(void)
while (!m_ShouldTerminate)
{
clock_t Start = clock();
- m_World.Tick((float)(LastTime - Start) / CLOCKS_PER_SEC);
+ m_World.Tick((float)(1000 * (Start - LastTime)) / CLOCKS_PER_SEC);
clock_t Now = clock();
if (Now - Start < ClocksPerTick)
{