Bugfix: 'final camera' (currently only used in race track) didn't work

correctly.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2143 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2008-06-27 14:09:43 +00:00
parent 61c4f6c42f
commit 1b49fd7b33

View File

@@ -844,6 +844,7 @@ void Track::loadTrack(std::string filename_)
// set the flag that the track has final camera position
m_has_final_camera = LISP->get("camera-final-position", m_camera_final_position);
m_has_final_camera &= LISP->get("camera-final-hpr", m_camera_final_hpr);
m_camera_final_hpr.degreeToRad();
// Set the correct paths
m_screenshot = file_manager->getTrackFile(m_screenshot, getIdent());