From 75937077136b9ec2eaba49c74543bdee323f68ff Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 9 Mar 2013 14:35:43 +0000 Subject: Pickups are now being saved into Anvil. Also changed cEntity rotation datatype to double git-svn-id: http://mc-server.googlecode.com/svn/trunk@1262 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Mobs/Monster.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/Mobs/Monster.cpp') diff --git a/source/Mobs/Monster.cpp b/source/Mobs/Monster.cpp index 224a16782..a2819a0bd 100644 --- a/source/Mobs/Monster.cpp +++ b/source/Mobs/Monster.cpp @@ -145,10 +145,10 @@ void cMonster::Tick(float a_Dt, MTRand & a_TickRandom) ReplicateMovement(); - Vector3f Distance = m_Destination - Vector3f( m_Pos ); + Vector3d Distance = m_Destination - Vector3f( m_Pos ); if (Distance.SqrLength() > 0.1f) { - float Rotation, Pitch; + double Rotation, Pitch; Distance.Normalize(); VectorToEuler( Distance.x, Distance.y, Distance.z, Rotation, Pitch ); SetRotation( Rotation ); -- cgit v1.2.3