Fix crashes when a kart has no wheels
This commit is contained in:
parent
8a0cbea933
commit
239412327a
@ -327,9 +327,9 @@ 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;
|
||||
}
|
||||
|
||||
|
||||
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