From 29c162bdf8d295639c521891de018e989e0a2b24 Mon Sep 17 00:00:00 2001 From: hiker Date: Tue, 23 Sep 2014 08:56:07 +1000 Subject: [PATCH] Fixed compiler warnings. --- src/karts/cannon_animation.cpp | 2 -- src/physics/btKart.cpp | 3 +-- src/states_screens/race_gui.cpp | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) 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;