From 6df50b40ee16d4c40ffc0067695b58d27e1afac8 Mon Sep 17 00:00:00 2001 From: "admin@omencraft.com" Date: Sun, 6 Nov 2011 02:36:05 +0000 Subject: Finished most of piston class. Pistons should work when a redstone current with wire is lit up or extinguished near them but don't yet. There'sa bug to kill. git-svn-id: http://mc-server.googlecode.com/svn/trunk@66 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPiston.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'source/cPiston.h') 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; -- cgit v1.2.3