Fixed compilation on linux.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6716 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -904,7 +904,7 @@ void DefaultAIController::findNonCrashingPoint(Vec3 *result)
|
||||
- m_kart->getXYZ();
|
||||
|
||||
float len=direction.length_2d();
|
||||
unsigned int steps = unsigned int( len / m_kart_length );
|
||||
unsigned int steps = (unsigned int)( len / m_kart_length );
|
||||
if( steps < 3 ) steps = 3;
|
||||
|
||||
// That shouldn't happen, but since we had one instance of
|
||||
|
||||
Reference in New Issue
Block a user