diff options
Diffstat (limited to 'src/resources/ambientlayer.cpp')
-rw-r--r-- | src/resources/ambientlayer.cpp | 4 |
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) |