diff --git a/src/karts/cannon_animation.cpp b/src/karts/cannon_animation.cpp index cc47cba94..a44ee3f22 100644 --- a/src/karts/cannon_animation.cpp +++ b/src/karts/cannon_animation.cpp @@ -46,8 +46,6 @@ CannonAnimation::CannonAnimation(AbstractKart *kart, Ipo *ipo) const float dt = 0.1f; Vec3 xyz1; m_curve->update(dt, &xyz1); - core::vector3df rot1 = (xyz1-m_previous_orig_xyz).toIrrVector() - .getHorizontalAngle(); core::vector3df rot = (m_previous_orig_xyz-xyz1).toIrrVector() .getHorizontalAngle(); btQuaternion q(Vec3(0,1,0),rot.Y*DEGREE_TO_RAD); diff --git a/src/physics/btKart.cpp b/src/physics/btKart.cpp index d411e9708..8e28cf21a 100644 --- a/src/physics/btKart.cpp +++ b/src/physics/btKart.cpp @@ -382,8 +382,7 @@ void btKart::updateVehicle( btScalar step ) m_visual_wheels_touch_ground = true; for (int i=0;i1) speed_ratio = 1; - video::ITexture *bar_texture = m_speed_bar_icon->getTexture(); video::S3DVertex vertices[5]; unsigned int count;