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)
{
ASSERT((a_Yaw >= -180) && (a_Yaw < 180));
a_Yaw -= 180;
a_Yaw += 360 + 45;
a_Yaw += 180 + 45;
if (a_Yaw > 360)
{
a_Yaw -= 360;

View File

@ -498,7 +498,7 @@ void cEntity::HandlePhysics(float a_Dt, cChunk & a_Chunk)
{
// Outside of the world
cChunk * NextChunk = a_Chunk.GetNeighborChunk(BlockX,BlockZ);
cChunk * NextChunk = a_Chunk.GetNeighborChunk(BlockX, BlockZ);
// See if we can commit our changes. If not, we will discard them.
if (NextChunk != NULL)
{