From 576f8589c03abe05fa71ce94ca6b93dee0ebcb07 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 10 Feb 2013 13:33:01 +0000 Subject: Removed useless logging from cEntity::GetLookVector() Requested by STR_Warrior http://forum.mc-server.org/showthread.php?tid=434&pid=6368#pid6368 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1205 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Entity.cpp | 3 +-- source/Entity.h | 18 +++++++++--------- 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'source') diff --git a/source/Entity.cpp b/source/Entity.cpp index 43f9e9431..c031c97af 100644 --- a/source/Entity.cpp +++ b/source/Entity.cpp @@ -273,12 +273,11 @@ void cEntity::SetRoll( float a_Roll ) ////////////////////////////////////////////////////////////////////////// // Get look vector (this is NOT a rotation!) -Vector3f cEntity::GetLookVector() +Vector3f cEntity::GetLookVector(void) const { Matrix4f m; m.Init( Vector3f(), 0, m_Rot.x, -m_Rot.y ); Vector3f Look = m.Transform( Vector3f(0, 0, 1) ); - LOG("Look: %0.1f %0.1f %0.1f", Look.x, Look.y, Look.z ); return Look; } diff --git a/source/Entity.h b/source/Entity.h index 8d8d2690b..2ed255cd0 100644 --- a/source/Entity.h +++ b/source/Entity.h @@ -97,15 +97,15 @@ public: cWorld * GetWorld(void) const { return m_World; } - const Vector3d & GetPosition(void) const {return m_Pos; } - double GetPosX (void) const {return m_Pos.x; } - double GetPosY (void) const {return m_Pos.y; } - double GetPosZ (void) const {return m_Pos.z; } - const Vector3f & GetRot (void) const {return m_Rot; } - float GetRotation(void) const {return m_Rot.x; } - float GetPitch (void) const {return m_Rot.y; } - float GetRoll (void) const {return m_Rot.z; } - Vector3f GetLookVector(void); + const Vector3d & GetPosition (void) const {return m_Pos; } + double GetPosX (void) const {return m_Pos.x; } + double GetPosY (void) const {return m_Pos.y; } + double GetPosZ (void) const {return m_Pos.z; } + const Vector3f & GetRot (void) const {return m_Rot; } + float GetRotation (void) const {return m_Rot.x; } + float GetPitch (void) const {return m_Rot.y; } + float GetRoll (void) const {return m_Rot.z; } + Vector3f GetLookVector(void) const; int GetChunkX(void) const {return m_ChunkX; } int GetChunkY(void) const {return m_ChunkY; } -- cgit v1.2.3