diff options
author | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-06 03:36:05 +0100 |
---|---|---|
committer | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-06 03:36:05 +0100 |
commit | 6df50b40ee16d4c40ffc0067695b58d27e1afac8 (patch) | |
tree | 3415cc89713c6ca6d0ca2e878ff8d0a88502da1f /source/cPiston.h | |
parent | Change SetBlock to FastSetBlock in cRedstone.cpp and grass will now grow if any one hit block is above it. (diff) | |
download | cuberite-6df50b40ee16d4c40ffc0067695b58d27e1afac8.tar cuberite-6df50b40ee16d4c40ffc0067695b58d27e1afac8.tar.gz cuberite-6df50b40ee16d4c40ffc0067695b58d27e1afac8.tar.bz2 cuberite-6df50b40ee16d4c40ffc0067695b58d27e1afac8.tar.lz cuberite-6df50b40ee16d4c40ffc0067695b58d27e1afac8.tar.xz cuberite-6df50b40ee16d4c40ffc0067695b58d27e1afac8.tar.zst cuberite-6df50b40ee16d4c40ffc0067695b58d27e1afac8.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cPiston.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source/cPiston.h b/source/cPiston.h index 46d7d2b20..9c4f38099 100644 --- a/source/cPiston.h +++ b/source/cPiston.h @@ -9,9 +9,6 @@ cPiston( cWorld* a_World ); static char RotationPitchToMetaData( float a_Rotation, float a_Pitch )
{
- //if pitch higher than this value set up
- //else if pitch lower than this value set down,
- //else just do rotation:
std::printf("pre:a_Rotation %f \n",a_Rotation);
std::printf("a_Pitch %f \n",a_Pitch);
@@ -26,19 +23,20 @@ static char RotationPitchToMetaData( float a_Rotation, float a_Pitch ) if( a_Rotation > 360.f ) a_Rotation -= 360.f;
if( a_Rotation >= 0.f && a_Rotation < 90.f )
- return 0x4;
+ { std::printf("1111\n");return 0x4;}
else if( a_Rotation >= 180 && a_Rotation < 270 )
- return 0x5;
+ { std::printf("2222\n");return 0x5;}
else if( a_Rotation >= 90 && a_Rotation < 180 )
- return 0x2;
+ { std::printf("3333\n");return 0x2;}
else
- return 0x3;
+ { std::printf("4444\n");return 0x3;}
}
}
-
void ExtendPiston( int, int, int );
void RetractPiston( int, int, int );
+void ChainMove( int, int, int, int, int, int );
+int FindFluidBlock( int, int, int, int, int, int );
cWorld* m_World;
|