From 4f17362aeb80e5339c58a5d3b0fbaeb88d9e701c Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 13 Feb 2012 21:47:03 +0000 Subject: Rewritten most of the code for multithreading; still not 100%, but getting there. If this commit proves to be too problematic, we can always undo it. git-svn-id: http://mc-server.googlecode.com/svn/trunk@251 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPiston.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/cPiston.h') diff --git a/source/cPiston.h b/source/cPiston.h index afb5780fb..54111f9d6 100644 --- a/source/cPiston.h +++ b/source/cPiston.h @@ -20,8 +20,8 @@ public: static char RotationPitchToMetaData( float a_Rotation, float a_Pitch ) { - std::printf("pre:a_Rotation %f \n",a_Rotation); - std::printf("a_Pitch %f \n",a_Pitch); + LOG("pre:a_Rotation %f \n",a_Rotation); + LOG("a_Pitch %f \n",a_Pitch); if (a_Pitch >= 50.f ){ return 0x1; @@ -34,13 +34,13 @@ public: if( a_Rotation > 360.f ) a_Rotation -= 360.f; if( a_Rotation >= 0.f && a_Rotation < 90.f ) - { std::printf("1111\n");return 0x4;} + { LOG("1111\n");return 0x4;} else if( a_Rotation >= 180 && a_Rotation < 270 ) - { std::printf("2222\n");return 0x5;} + { LOG("2222\n");return 0x5;} else if( a_Rotation >= 90 && a_Rotation < 180 ) - { std::printf("3333\n");return 0x2;} + { LOG("3333\n");return 0x2;} else - { std::printf("4444\n");return 0x3;} + { LOG("4444\n");return 0x3;} } } -- cgit v1.2.3