Due to floating point errors it could happen that a kart crosses
the lap counting line in the very first frame. To avoid this, karts will now start 0.1 units behind the lap counting line. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6278 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
77c0d66653
commit
83b6eccf64
@ -207,7 +207,7 @@ void QuadGraph::setDefaultStartPositions(std::vector<btTransform>
|
||||
{
|
||||
// Node 0 is always the node on which the start line is.
|
||||
int current_node = getPredecessor(0);
|
||||
float distance_from_start = 0.0f;
|
||||
float distance_from_start = 0.1f;
|
||||
|
||||
// Maximum distance to left (or right) of centre line
|
||||
const float max_x_dist = (karts_per_row-1)*0.5f*sidewards_distance;
|
||||
|
Loading…
Reference in New Issue
Block a user