diff options
Diffstat (limited to 'src/resources/ambientlayer.cpp')
-rw-r--r-- | src/resources/ambientlayer.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/resources/ambientlayer.cpp b/src/resources/ambientlayer.cpp index 301927f8..b71378cb 100644 --- a/src/resources/ambientlayer.cpp +++ b/src/resources/ambientlayer.cpp @@ -25,20 +25,12 @@ #include "resources/image.h" #include "resources/resourcemanager.h" -AmbientLayer::AmbientLayer(Image *img, float parallax, - float speedX, float speedY, bool keepRatio): - mImage(img), mParallax(parallax), - mPosX(0), mPosY(0), - mSpeedX(speedX), mSpeedY(speedY), - mKeepRatio(keepRatio) -{ - mImage->incRef(); -} +AmbientLayer::AmbientLayer(Image *img) + : mImage(img) +{} AmbientLayer::~AmbientLayer() -{ - mImage->decRef(); -} +{} void AmbientLayer::update(int timePassed, float dx, float dy) { |