Fixed compiler warnings.

This commit is contained in:
hiker 2014-09-23 08:56:07 +10:00
parent 7ac0c14869
commit 29c162bdf8
3 changed files with 1 additions and 5 deletions

View File

@ -46,8 +46,6 @@ CannonAnimation::CannonAnimation(AbstractKart *kart, Ipo *ipo)
const float dt = 0.1f; const float dt = 0.1f;
Vec3 xyz1; Vec3 xyz1;
m_curve->update(dt, &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() core::vector3df rot = (m_previous_orig_xyz-xyz1).toIrrVector()
.getHorizontalAngle(); .getHorizontalAngle();
btQuaternion q(Vec3(0,1,0),rot.Y*DEGREE_TO_RAD); btQuaternion q(Vec3(0,1,0),rot.Y*DEGREE_TO_RAD);

View File

@ -382,8 +382,7 @@ void btKart::updateVehicle( btScalar step )
m_visual_wheels_touch_ground = true; m_visual_wheels_touch_ground = true;
for (int i=0;i<m_wheelInfo.size();i++) for (int i=0;i<m_wheelInfo.size();i++)
{ {
btScalar depth; rayCast( i);
depth = rayCast( i);
if(m_wheelInfo[i].m_raycastInfo.m_isInContact) if(m_wheelInfo[i].m_raycastInfo.m_isInContact)
m_num_wheels_on_ground++; m_num_wheels_on_ground++;
} }

View File

@ -734,7 +734,6 @@ void RaceGUI::drawSpeedEnergyRank(const AbstractKart* kart,
float speed_ratio = speed/KILOMETERS_PER_HOUR/110.0f; float speed_ratio = speed/KILOMETERS_PER_HOUR/110.0f;
if(speed_ratio>1) speed_ratio = 1; if(speed_ratio>1) speed_ratio = 1;
video::ITexture *bar_texture = m_speed_bar_icon->getTexture();
video::S3DVertex vertices[5]; video::S3DVertex vertices[5];
unsigned int count; unsigned int count;