summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-13 17:42:02 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-13 17:42:02 +0200
commit2b0541ab39e47dafcd7fdc66fa49a955ef7f8719 (patch)
treef604fd01b9bd7ed4deb032496f2af2ee74e8de72 /source
parentRemoved more comments (diff)
downloadcuberite-2b0541ab39e47dafcd7fdc66fa49a955ef7f8719.tar
cuberite-2b0541ab39e47dafcd7fdc66fa49a955ef7f8719.tar.gz
cuberite-2b0541ab39e47dafcd7fdc66fa49a955ef7f8719.tar.bz2
cuberite-2b0541ab39e47dafcd7fdc66fa49a955ef7f8719.tar.lz
cuberite-2b0541ab39e47dafcd7fdc66fa49a955ef7f8719.tar.xz
cuberite-2b0541ab39e47dafcd7fdc66fa49a955ef7f8719.tar.zst
cuberite-2b0541ab39e47dafcd7fdc66fa49a955ef7f8719.zip
Diffstat (limited to '')
-rw-r--r--source/Piston.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Piston.cpp b/source/Piston.cpp
index f5aaabf00..43c3441fb 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(100 * 1000); // takes microseconds
+ usleep(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(100 * 1000); // takes microseconds
+ usleep(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(100 * 1000); // takes microseconds
+ usleep(0.1);
#endif
m_World->SetBlock(pistx, pisty, pistz, E_BLOCK_AIR, 0);