summaryrefslogtreecommitdiff
path: root/src/resources/ambientlayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:34 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:34 +0300
commitdc569bbcb4c12a5a400f9e5701e5c1027badadae (patch)
tree9b502cafda345e7fb4b0342de97c77822544d9fd /src/resources/ambientlayer.cpp
parent88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce (diff)
downloadmv-dc569bbcb4c12a5a400f9e5701e5c1027badadae.tar.gz
mv-dc569bbcb4c12a5a400f9e5701e5c1027badadae.tar.bz2
mv-dc569bbcb4c12a5a400f9e5701e5c1027badadae.tar.xz
mv-dc569bbcb4c12a5a400f9e5701e5c1027badadae.zip
Fix code style in resources.
Diffstat (limited to 'src/resources/ambientlayer.cpp')
-rw-r--r--src/resources/ambientlayer.cpp4
1 files changed, 2 insertions, 2 deletions
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<float>(rect.w);
+ const float imgH = static_cast<float>(rect.h);
// Wrap values
while (mPosX > imgW)