From ee514b08a73c0be71ee598c44a506845ac9bf6f1 Mon Sep 17 00:00:00 2001 From: auria Date: Mon, 28 Jun 2010 00:39:45 +0000 Subject: [PATCH] Hopefully fixed bug where camera hanged git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5577 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/camera.cpp | 1 + src/karts/moveable.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/graphics/camera.cpp b/src/graphics/camera.cpp index 2d1331508..e0fa07fab 100644 --- a/src/graphics/camera.cpp +++ b/src/graphics/camera.cpp @@ -255,6 +255,7 @@ void Camera::computeNormalCameraPosition(Vec3 *wanted_position, wanted_position->setX(-sin(angle_around)); wanted_position->setY( sin(angle_up) ); wanted_position->setZ(-cos(angle_around)); + *wanted_position *= m_distance; *wanted_position += *wanted_target; } // computeNormalCameraPosition diff --git a/src/karts/moveable.cpp b/src/karts/moveable.cpp index 93d4e5340..3284efdd7 100644 --- a/src/karts/moveable.cpp +++ b/src/karts/moveable.cpp @@ -31,6 +31,7 @@ Moveable::Moveable() m_motion_state = 0; m_mesh = NULL; m_node = NULL; + m_heading = 0; } // Moveable //-----------------------------------------------------------------------------