summaryrefslogtreecommitdiffstats
path: root/source/Piston.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-13 18:45:40 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-13 18:45:40 +0200
commit020ff36af2c9f19527483af041a81e822b479e91 (patch)
tree69db45884d3fb7344e79fd54ab0eda6358b2b770 /source/Piston.cpp
parentCredits (diff)
downloadcuberite-020ff36af2c9f19527483af041a81e822b479e91.tar
cuberite-020ff36af2c9f19527483af041a81e822b479e91.tar.gz
cuberite-020ff36af2c9f19527483af041a81e822b479e91.tar.bz2
cuberite-020ff36af2c9f19527483af041a81e822b479e91.tar.lz
cuberite-020ff36af2c9f19527483af041a81e822b479e91.tar.xz
cuberite-020ff36af2c9f19527483af041a81e822b479e91.tar.zst
cuberite-020ff36af2c9f19527483af041a81e822b479e91.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 0ebebfc9b..161f2b38c 100644
--- a/source/Piston.cpp
+++ b/source/Piston.cpp
@@ -128,7 +128,7 @@ void cPiston::ExtendPiston( int pistx, int pisty, int pistz )
AddDir(extx, exty, extz, pistonMeta & 7, 1)
- #ifdef __WIN32__
+ #ifdef _WIN32
Sleep(100);
#else
usleep(static_cast<useconds_t>(100)*1000);
@@ -178,7 +178,7 @@ void cPiston::RetractPiston( int pistx, int pisty, int pistz )
// These cannot be moved by the sticky piston, bail out
return;
}
- #ifdef __WIN32__
+ #ifdef _WIN32
Sleep(100);
#else
usleep(static_cast<useconds_t>(100)*1000);
@@ -189,7 +189,7 @@ void cPiston::RetractPiston( int pistx, int pisty, int pistz )
}
else
{
- #ifdef __WIN32__
+ #ifdef _WIN32
Sleep(100);
#else
usleep(static_cast<useconds_t>(100)*1000);