From dc569bbcb4c12a5a400f9e5701e5c1027badadae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 Apr 2014 19:52:34 +0300 Subject: Fix code style in resources. --- src/resources/ambientlayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/ambientlayer.cpp') diff --git a/src/resources/ambientlayer.cpp b/src/resources/ambientlayer.cpp index b839064be..6f760fe9d 100644 --- a/src/resources/ambientlayer.cpp +++ b/src/resources/ambientlayer.cpp @@ -101,8 +101,8 @@ void AmbientLayer::update(const int timePassed, const float dx, const float dy) mPosY += dy * mParallaxY; const SDL_Rect &rect = mImage->mBounds; - const float imgW = rect.w; - const float imgH = rect.h; + const float imgW = static_cast(rect.w); + const float imgH = static_cast(rect.h); // Wrap values while (mPosX > imgW) -- cgit v1.2.3-60-g2f50