From ca66768c9e640b15769c964546f1cd7cdf79c4f9 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 7 Jun 2010 21:49:14 +0000 Subject: [PATCH] Removed unused code, updated docs. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5481 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/tracks/quad_graph.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/tracks/quad_graph.cpp b/src/tracks/quad_graph.cpp index f107e0aef..5dcff4c5b 100644 --- a/src/tracks/quad_graph.cpp +++ b/src/tracks/quad_graph.cpp @@ -76,8 +76,6 @@ void QuadGraph::setStartCoordinate(const CheckLine &cl) m_quad_filename.c_str()); return; } - Vec3 xyz; - spatialToTrack(&xyz, start_point, sector); } // setStartCoordinate // ----------------------------------------------------------------------------- @@ -304,11 +302,10 @@ void QuadGraph::getSuccessors(int node_number, std::vector& succ) //----------------------------------------------------------------------------- /** This function takes absolute coordinates (coordinates in OpenGL - * space) and transforms them into coordinates based on the track. It is - * for 2D coordinates, thought it can be used on 3D vectors. The y-axis + * space) and transforms them into coordinates based on the track. The y-axis * of the returned vector is how much of the track the point has gone - * through, the x-axis is on which side of the road it is. The Z axis - * is not changed. + * through, the x-axis is on which side of the road it is (relative to a line + * connecting the two center points of a quad). The Y axis is not changed. * \param dst Returns the results in the X and Z coordinates. * \param xyz The position of the kart. * \param sector The graph node the position is on.