Merge remote-tracking branch 'origin/master' into saplingsandleaves
Conflicts: src/Defines.h
This commit is contained in:
@@ -470,7 +470,7 @@ inline void AddFaceDirection(int & a_BlockX, unsigned char & a_BlockY, int & a_B
|
||||
{
|
||||
int Y = a_BlockY;
|
||||
AddFaceDirection(a_BlockX, Y, a_BlockZ, a_BlockFace, a_bInverse);
|
||||
a_BlockY = Clamp<unsigned char>(Y, 0, 255);
|
||||
a_BlockY = Clamp<unsigned char>((unsigned char)Y, 0, 255);
|
||||
}
|
||||
|
||||
|
||||
@@ -479,9 +479,9 @@ inline void AddFaceDirection(int & a_BlockX, unsigned char & a_BlockY, int & a_B
|
||||
|
||||
inline void EulerToVector(double a_Pan, double a_Pitch, double & a_X, double & a_Y, double & a_Z)
|
||||
{
|
||||
// a_X = sinf ( a_Pan / 180 * PI ) * cosf ( a_Pitch / 180 * PI );
|
||||
// a_Y = -sinf ( a_Pitch / 180 * PI );
|
||||
// a_Z = -cosf ( a_Pan / 180 * PI ) * cosf ( a_Pitch / 180 * PI );
|
||||
// a_X = sinf ( a_Pan / 180 * PI) * cosf ( a_Pitch / 180 * PI);
|
||||
// a_Y = -sinf ( a_Pitch / 180 * PI);
|
||||
// a_Z = -cosf ( a_Pan / 180 * PI) * cosf ( a_Pitch / 180 * PI);
|
||||
a_X = cos(a_Pan / 180 * PI) * cos(a_Pitch / 180 * PI);
|
||||
a_Y = sin(a_Pan / 180 * PI) * cos(a_Pitch / 180 * PI);
|
||||
a_Z = sin(a_Pitch / 180 * PI);
|
||||
@@ -519,7 +519,7 @@ inline float GetSignf(float a_Val)
|
||||
|
||||
|
||||
|
||||
inline float GetSpecialSignf( float a_Val )
|
||||
inline float GetSpecialSignf( float a_Val)
|
||||
{
|
||||
return (a_Val <= 0.f) ? -1.f : 1.f;
|
||||
}
|
||||
@@ -640,11 +640,11 @@ namespace ItemCategory
|
||||
|
||||
inline bool IsTool(short a_ItemID)
|
||||
{
|
||||
return IsPickaxe( a_ItemID )
|
||||
|| IsAxe ( a_ItemID )
|
||||
|| IsSword ( a_ItemID )
|
||||
|| IsHoe ( a_ItemID )
|
||||
|| IsShovel ( a_ItemID );
|
||||
return IsPickaxe( a_ItemID)
|
||||
|| IsAxe ( a_ItemID)
|
||||
|| IsSword ( a_ItemID)
|
||||
|| IsHoe ( a_ItemID)
|
||||
|| IsShovel ( a_ItemID);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user