Removed dead code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10820 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
3659b14667
commit
9c51953e7a
@ -224,22 +224,7 @@ void RubberBall::getNextControlPoint()
|
|||||||
m_length_cp_2_3 = dist;
|
m_length_cp_2_3 = dist;
|
||||||
const Quad &quad =
|
const Quad &quad =
|
||||||
QuadGraph::get()->getQuadOfNode(m_last_aimed_graph_node);
|
QuadGraph::get()->getQuadOfNode(m_last_aimed_graph_node);
|
||||||
Vec3 aim = quad.getCenter();
|
m_control_points[3] = quad.getCenter();
|
||||||
// If we are close enough for the ball to hop faster, adjust the position
|
|
||||||
// relative to the center of the track depending on where the target is:
|
|
||||||
|
|
||||||
// if(m_fast_ping)
|
|
||||||
if(0)
|
|
||||||
{
|
|
||||||
LinearWorld *world = dynamic_cast<LinearWorld*>(World::getWorld());
|
|
||||||
float r = world->getTrackSector(m_target->getWorldKartId())
|
|
||||||
.getRelativeDistanceToCenter();
|
|
||||||
aim -= m_st_early_target_factor * r
|
|
||||||
* QuadGraph::get()->getNode(m_last_aimed_graph_node)
|
|
||||||
.getCenterToRightVector();
|
|
||||||
}
|
|
||||||
|
|
||||||
m_control_points[3] = aim;
|
|
||||||
} // getNextControlPoint
|
} // getNextControlPoint
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user