From: <hik...@us...> - 2012-02-09 11:21:14
|
Revision: 10831 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=10831&view=rev Author: hikerstk Date: 2012-02-09 11:21:07 +0000 (Thu, 09 Feb 2012) Log Message: ----------- Bugfix: In reverse mode, distance along track started with the wrong graph node, causing the first lap crossing not being detected. Modified Paths: -------------- main/branches/reverse_mode/src/tracks/quad_graph.cpp Modified: main/branches/reverse_mode/src/tracks/quad_graph.cpp =================================================================== --- main/branches/reverse_mode/src/tracks/quad_graph.cpp 2012-02-09 05:41:13 UTC (rev 10830) +++ main/branches/reverse_mode/src/tracks/quad_graph.cpp 2012-02-09 11:21:07 UTC (rev 10831) @@ -187,7 +187,7 @@ // The track exporter always exports quad 0 as first quad after (or at) // the start line (start line is lower side of quad 0). In reverse mode // the start quad is the predecessor of node 0. - unsigned int start_node = m_reverse ? m_all_nodes[0]->getPredecessor() + unsigned int start_node = m_reverse ? m_all_nodes[0]->getSuccessor(0) : 0; computeDistanceFromStart(start_node, 0.0f); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |