More changes [SEE DESC]
* Improved (again) pumpkin direction handling * Fixed spacing in Entity.cpp
This commit is contained in:
parent
8ef91817e9
commit
3a1def2c90
@ -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;
|
||||||
|
@ -498,7 +498,7 @@ void cEntity::HandlePhysics(float a_Dt, cChunk & a_Chunk)
|
|||||||
{
|
{
|
||||||
// Outside of the world
|
// 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.
|
// See if we can commit our changes. If not, we will discard them.
|
||||||
if (NextChunk != NULL)
|
if (NextChunk != NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user