From 769e7987eb1ef269b0973923f335f3838f592a8c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Jul 2013 20:26:58 +0300 Subject: move bools in compoundsprite. --- src/compoundsprite.cpp | 6 +++--- src/compoundsprite.h | 11 +++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp index a191afc59..748bf4d42 100644 --- a/src/compoundsprite.cpp +++ b/src/compoundsprite.cpp @@ -55,12 +55,12 @@ CompoundSprite::CompoundSprite() : mAlphaImage(nullptr), mOffsetX(0), mOffsetY(0), + mSprites(), + mNextRedrawTime(0), mNeedsRedraw(false), mEnableAlphaFix(config.getBoolValue("enableAlphaFix")), mDisableAdvBeingCaching(config.getBoolValue("disableAdvBeingCaching")), - mDisableBeingCaching(config.getBoolValue("disableBeingCaching")), - mSprites(), - mNextRedrawTime(0) + mDisableBeingCaching(config.getBoolValue("disableBeingCaching")) { mAlpha = 1.0f; } diff --git a/src/compoundsprite.h b/src/compoundsprite.h index 6049cdeb9..0c7dc3034 100644 --- a/src/compoundsprite.h +++ b/src/compoundsprite.h @@ -147,16 +147,15 @@ private: mutable Image *mImage; mutable Image *mAlphaImage; - mutable int mOffsetX, mOffsetY; - + mutable int mOffsetX; + mutable int mOffsetY; + std::vector mSprites; + mutable int mNextRedrawTime; + static bool mEnableDelay; mutable bool mNeedsRedraw; - bool mEnableAlphaFix; bool mDisableAdvBeingCaching; bool mDisableBeingCaching; - std::vector mSprites; - mutable int mNextRedrawTime; - static bool mEnableDelay; }; #endif // COMPOUNDSPRITE_H -- cgit v1.2.3-70-g09d2