From 8f047b07046314f1ff22bfc775240aaeb300ef1b Mon Sep 17 00:00:00 2001 From: "keyboard.osh@gmail.com" Date: Tue, 2 Apr 2013 06:48:31 +0000 Subject: Added support for head yaw tracking and packet sending and fixed bug in BroadcastMovementUpdate git-svn-id: http://mc-server.googlecode.com/svn/trunk@1350 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Mobs/Monster.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/Mobs') diff --git a/source/Mobs/Monster.cpp b/source/Mobs/Monster.cpp index 8867c7e60..77bad8f51 100644 --- a/source/Mobs/Monster.cpp +++ b/source/Mobs/Monster.cpp @@ -153,6 +153,7 @@ void cMonster::Tick(float a_Dt, MTRand & a_TickRandom) double Rotation, Pitch; Distance.Normalize(); VectorToEuler( Distance.x, Distance.y, Distance.z, Rotation, Pitch ); + SetHeadYaw (Rotation); SetRotation( Rotation ); SetPitch( Pitch ); } -- cgit v1.2.3