From 22aad91f66f6a60fca800d16454c43f02bb1742d Mon Sep 17 00:00:00 2001 From: hikerstk Date: Wed, 12 Jan 2011 03:25:33 +0000 Subject: [PATCH] Fixed compiler warnings. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7376 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/karts/kart.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index 4ba366ccd..f51b50de6 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -1639,12 +1639,14 @@ void Kart::updateGraphics(const Vec3& offset_xyz, if (m->hasWaterSplash() && hot != Track::NOHIT) { - const int hat = getXYZ().getY() - hot; + const float hat = getXYZ().getY() - hot; // TODO: don't hardcode height, get from exporter if (hat < 4.0f && hat > 2.0f) { - m_water_splash_system->setCreationRate(m_water_splash_system->getParticlesInfo()->getMaxRate()); + m_water_splash_system->setCreationRate( + (float)m_water_splash_system->getParticlesInfo()->getMaxRate() + ); } else {