From b3590f40b83eb3400b6b1492dc71e763ea38ce7c Mon Sep 17 00:00:00 2001 From: hikerstk Date: Fri, 26 Dec 2008 19:32:08 +0000 Subject: [PATCH] Fixed compiler warnings (VS). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2779 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/skid_marks.cpp | 2 +- src/karts/kart.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/skid_marks.cpp b/src/graphics/skid_marks.cpp index e3a6a2c7f..4ec86fafc 100644 --- a/src/graphics/skid_marks.cpp +++ b/src/graphics/skid_marks.cpp @@ -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 diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index 543626f37..09cf50555 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -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();