Fixes the AI not doing wheelies in jungle track; removed unused variable.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1701 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
cosmosninja 2008-04-20 18:07:04 +00:00
parent 7260e6463b
commit 0a41f57aee
2 changed files with 1 additions and 2 deletions

View File

@ -64,7 +64,6 @@ protected:
// e.g. UNKNOWN_SECTOR can be negative!
sgVec2 m_last_track_coords;
sgVec3 m_curr_track_coords;
sgVec3 m_velocity_wc; // velocity in world coordinates
float m_max_speed; // maximum speed of the kart, computed from
float m_max_speed_reverse_ratio;
float m_wheelie_angle;

View File

@ -581,7 +581,7 @@ void DefaultRobot::check_crashes( const int STEPS, sgVec3 const pos )
for(int i = 1; STEPS > i; ++i)
{
sgAddScaledVec2( step_coord, pos, vel_normal, m_kart_properties->getKartLength() * i );
sgAddScaledVec3( step_coord, pos, vel_normal, m_kart_properties->getKartLength() * i );
/* Find if we crash with any kart, as long as we haven't found one
* yet