Fix infinite loop
This commit is contained in:
parent
239412327a
commit
b92395533e
@ -327,9 +327,16 @@ void ThreeStrikesBattle::update(float dt)
|
||||
tire = m_tire_dir+"/wheel-front-right.b3d";
|
||||
else if(m_insert_tire == 5)
|
||||
tire = m_tire_dir+"/wheel-rear-right.b3d";
|
||||
if(!file_manager->fileExists(tire)) continue;
|
||||
if(!file_manager->fileExists(tire))
|
||||
{
|
||||
m_insert_tire--;
|
||||
if(m_insert_tire == 1)
|
||||
m_insert_tire = 0;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
core::vector3df tire_xyz = m_tire_position + tire_offset;
|
||||
core::vector3df tire_hpr = core::vector3df(800.0f,0,
|
||||
m_tire_rotation *RAD_TO_DEGREE + 180);
|
||||
|
Loading…
Reference in New Issue
Block a user