Removed display of highest speed when wheels are not on ground.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6999 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-12-13 11:50:42 +00:00
parent 370bd1338b
commit d81be16715

View File

@ -830,7 +830,7 @@ void RaceGUI::drawSpeedAndEnergy(const Kart* kart, const core::recti &viewport,
// Draw the actual speed bar (if the speed is >0)
// ----------------------------------------------
float speed_ratio = speed/KILOMETERS_PER_HOUR/110.0f;
if(speed_ratio>1 || !kart->isOnGround()) speed_ratio = 1;
if(speed_ratio>1) speed_ratio = 1;
video::ITexture *bar_texture = m_speed_bar_icon->getTexture();
core::dimension2du bar_size = bar_texture->getOriginalSize();