summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-13 17:47:44 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-13 17:47:44 +0200
commita322bb275f35a97e917acc8d29f9a3eb4695ae8f (patch)
tree00787b94df0f34a96851673059e9ca3557154e8e
parentAttempt at fixing sleep issue (diff)
downloadcuberite-a322bb275f35a97e917acc8d29f9a3eb4695ae8f.tar
cuberite-a322bb275f35a97e917acc8d29f9a3eb4695ae8f.tar.gz
cuberite-a322bb275f35a97e917acc8d29f9a3eb4695ae8f.tar.bz2
cuberite-a322bb275f35a97e917acc8d29f9a3eb4695ae8f.tar.lz
cuberite-a322bb275f35a97e917acc8d29f9a3eb4695ae8f.tar.xz
cuberite-a322bb275f35a97e917acc8d29f9a3eb4695ae8f.tar.zst
cuberite-a322bb275f35a97e917acc8d29f9a3eb4695ae8f.zip
-rw-r--r--source/Piston.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Piston.cpp b/source/Piston.cpp
index 43c3441fb..569ef02e3 100644
--- a/source/Piston.cpp
+++ b/source/Piston.cpp
@@ -127,7 +127,7 @@ void cPiston::ExtendPiston( int pistx, int pisty, int pistz )
Sleep(100);
#else
#include <unistd.h>
- usleep(0.1);
+ sleep(0.1);
#endif
m_World->SetBlock(extx, exty, extz, E_BLOCK_PISTON_EXTENSION, isSticky + pistonMeta & 7);
@@ -179,7 +179,7 @@ void cPiston::RetractPiston( int pistx, int pisty, int pistz )
Sleep(100);
#else
#include <unistd.h>
- usleep(0.1);
+ sleep(0.1);
#endif
m_World->SetBlock(pistx, pisty, pistz, tempblock, tempmeta);
@@ -192,7 +192,7 @@ void cPiston::RetractPiston( int pistx, int pisty, int pistz )
Sleep(100);
#else
#include <unistd.h>
- usleep(0.1);
+ sleep(0.1);
#endif
m_World->SetBlock(pistx, pisty, pistz, E_BLOCK_AIR, 0);