1
0

More changes [SEE DESC]

* Improved (again) pumpkin direction handling
* Fixed spacing in Entity.cpp
This commit is contained in:
Tiger Wang 2013-09-11 20:07:51 +01:00
parent 8ef91817e9
commit 3a1def2c90
2 changed files with 3 additions and 4 deletions

View File

@ -28,10 +28,9 @@ public:
inline static NIBBLETYPE PlayerYawToMetaData(double a_Yaw) inline static NIBBLETYPE PlayerYawToMetaData(double a_Yaw)
{ {
ASSERT((a_Yaw >= -180) && (a_Yaw < 180)); ASSERT((a_Yaw >= -180) && (a_Yaw < 180));
a_Yaw -= 180;
a_Yaw += 360 + 45; a_Yaw += 180 + 45;
if (a_Yaw > 360) if (a_Yaw > 360)
{ {
a_Yaw -= 360; a_Yaw -= 360;