(Hopefully) fixed compilation on non-VS compilers.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5110 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
752d81db11
commit
ce8dfe954a
@ -779,7 +779,7 @@ void DefaultAIController::handleNitroAndZipper()
|
||||
} // handleNitroAndZipper
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void DefaultAIController::checkCrashes( const int STEPS, const Vec3& pos )
|
||||
void DefaultAIController::checkCrashes(int steps, const Vec3& pos )
|
||||
{
|
||||
//Right now there are 2 kind of 'crashes': with other karts and another
|
||||
//with the track. The sight line is used to find if the karts crash with
|
||||
@ -802,13 +802,13 @@ void DefaultAIController::checkCrashes( const int STEPS, const Vec3& pos )
|
||||
vel_normal/=speed;
|
||||
|
||||
int current_node = m_track_node;
|
||||
if(STEPS<1 || STEPS>1000)
|
||||
if(steps<1 || steps>1000)
|
||||
{
|
||||
printf("Warning, incorrect STEPS=%d. kart_length %f velocity %f\n",
|
||||
STEPS, m_kart_length, m_kart->getVelocityLC().getZ());
|
||||
STEPS=1000;
|
||||
steps, m_kart_length, m_kart->getVelocityLC().getZ());
|
||||
steps=1000;
|
||||
}
|
||||
for(int i = 1; STEPS > i; ++i)
|
||||
for(int i = 1; steps > i; ++i)
|
||||
{
|
||||
Vec3 step_coord = pos + vel_normal* m_kart_length * float(i);
|
||||
|
||||
|
@ -167,7 +167,7 @@ private:
|
||||
void handleNitroAndZipper();
|
||||
void computeNearestKarts();
|
||||
|
||||
void checkCrashes(const int STEPS, const Vec3& pos);
|
||||
void checkCrashes(int steps, const Vec3& pos);
|
||||
void findNonCrashingPoint(Vec3 *result);
|
||||
|
||||
int calcSteps();
|
||||
|
Loading…
Reference in New Issue
Block a user