Fixed compiler warnings (VS).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2779 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
928f59d596
commit
b3590f40b8
@ -112,7 +112,7 @@ void SkidMarks::update(float dt)
|
||||
|
||||
// not turning enough, don't draw skidmarks if kart is going straight ahead
|
||||
// this is even stricter for Ai karts, since they tend to use LOTS of skidding
|
||||
const float min_skid_angle = m_kart.isPlayerKart() ? 0.55 : 0.95;
|
||||
const float min_skid_angle = m_kart.isPlayerKart() ? 0.55 f: 0.95f;
|
||||
if( fabsf(m_kart.getSteerPercent()) < min_skid_angle) return;
|
||||
|
||||
// Start new skid marks
|
||||
|
@ -780,7 +780,7 @@ void Kart::updatePhysics (float dt)
|
||||
}
|
||||
if(m_skidding>1.0f)
|
||||
{
|
||||
const float min_skid_angle = isPlayerKart() ? 0.55 : 0.95;
|
||||
const float min_skid_angle = isPlayerKart() ? 0.55f : 0.95f;
|
||||
if(m_skid_sound->getStatus() != SFXManager::SFX_PLAYING &&
|
||||
fabsf(getSteerPercent()) > min_skid_angle )
|
||||
m_skid_sound->play();
|
||||
|
Loading…
Reference in New Issue
Block a user